Skip to content

Commit de5c01a

Browse files
feat: Automated regeneration of DiscoveryEngine client (#13286)
Auto-created at 2025-04-02 13:22:07 +0000 using the toys pull request generator.
1 parent ab79226 commit de5c01a

14 files changed

+502
-2
lines changed

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 "20250322"
23+
@discovery_revision "20250331"
2424

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

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Documen
2121
2222
## Attributes
2323
24+
* `aclInfo` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo.t`, *default:* `nil`) - Access control information for the document.
2425
* `content` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentContent.t`, *default:* `nil`) - The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store.
2526
* `derivedStructData` (*type:* `map()`, *default:* `nil`) - Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
2627
* `id` (*type:* `String.t`, *default:* `nil`) - Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 128 characters.
@@ -36,6 +37,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Documen
3637
use GoogleApi.Gax.ModelBase
3738

3839
@type t :: %__MODULE__{
40+
:aclInfo =>
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo.t()
42+
| nil,
3943
:content =>
4044
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentContent.t()
4145
| nil,
@@ -52,6 +56,10 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Documen
5256
:structData => map() | nil
5357
}
5458

59+
field(:aclInfo,
60+
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo
61+
)
62+
5563
field(:content,
5664
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentContent
5765
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo do
19+
@moduledoc """
20+
ACL Information of the Document.
21+
22+
## Attributes
23+
24+
* `readers` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction.t)`, *default:* `nil`) - Readers of the document.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:readers =>
31+
list(
32+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction.t()
33+
)
34+
| nil
35+
}
36+
37+
field(:readers,
38+
as:
39+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction,
40+
type: :list
41+
)
42+
end
43+
44+
defimpl Poison.Decoder,
45+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo do
46+
def decode(value, options) do
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo.decode(
48+
value,
49+
options
50+
)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder,
55+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfo do
56+
def encode(value, options) do
57+
GoogleApi.Gax.ModelBase.encode(value, options)
58+
end
59+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction do
19+
@moduledoc """
20+
AclRestriction to model complex inheritance restrictions. Example: Modeling a "Both Permit" inheritance, where to access a child document, user needs to have access to parent document. Document Hierarchy - Space_S --> Page_P. Readers: Space_S: group_1, user_1 Page_P: group_2, group_3, user_2 Space_S ACL Restriction - { "acl_info": { "readers": [ { "principals": [ { "group_id": "group_1" }, { "user_id": "user_1" } ] } ] } } Page_P ACL Restriction. { "acl_info": { "readers": [ { "principals": [ { "group_id": "group_2" }, { "group_id": "group_3" }, { "user_id": "user_2" } ], }, { "principals": [ { "group_id": "group_1" }, { "user_id": "user_1" } ], } ] } }
21+
22+
## Attributes
23+
24+
* `idpWide` (*type:* `boolean()`, *default:* `nil`) - All users within the Identity Provider.
25+
* `principals` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal.t)`, *default:* `nil`) - List of principals.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:idpWide => boolean() | nil,
32+
:principals =>
33+
list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal.t())
34+
| nil
35+
}
36+
37+
field(:idpWide)
38+
39+
field(:principals,
40+
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal,
41+
type: :list
42+
)
43+
end
44+
45+
defimpl Poison.Decoder,
46+
for:
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction do
48+
def decode(value, options) do
49+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction.decode(
50+
value,
51+
options
52+
)
53+
end
54+
end
55+
56+
defimpl Poison.Encoder,
57+
for:
58+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction do
59+
def encode(value, options) do
60+
GoogleApi.Gax.ModelBase.encode(value, options)
61+
end
62+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal do
19+
@moduledoc """
20+
Principal identifier of a user or a group.
21+
22+
## Attributes
23+
24+
* `groupId` (*type:* `String.t`, *default:* `nil`) - Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config.
25+
* `userId` (*type:* `String.t`, *default:* `nil`) - User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:groupId => String.t() | nil,
32+
:userId => String.t() | nil
33+
}
34+
35+
field(:groupId)
36+
field(:userId)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal do
41+
def decode(value, options) do
42+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Principal do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
4242
* `params` (*type:* `map()`, *default:* `nil`) - Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { "instance_uri": "https://xxx.atlassian.net", "user_account": "[email protected]", "api_token": "test-token" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.
4343
* `privateConnectivityProjectId` (*type:* `String.t`, *default:* `nil`) - Output only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function.
4444
* `realtimeState` (*type:* `String.t`, *default:* `nil`) - Output only. real-time sync state
45+
* `realtimeSyncConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig.t`, *default:* `nil`) - Optional. The configuration for realtime sync.
4546
* `refreshInterval` (*type:* `String.t`, *default:* `nil`) - Required. The refresh interval for data sync. If duration is set to 0, the data will be synced in real time. The streaming feature is not supported yet. The minimum is 30 minutes and maximum is 7 days.
4647
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the connector.
4748
* `staticIpAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The static IP addresses used by this connector.
@@ -92,6 +93,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
9293
:params => map() | nil,
9394
:privateConnectivityProjectId => String.t() | nil,
9495
:realtimeState => String.t() | nil,
96+
:realtimeSyncConfig =>
97+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig.t()
98+
| nil,
9599
:refreshInterval => String.t() | nil,
96100
:state => String.t() | nil,
97101
:staticIpAddresses => list(String.t()) | nil,
@@ -146,6 +150,12 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
146150
field(:params, type: :map)
147151
field(:privateConnectivityProjectId)
148152
field(:realtimeState)
153+
154+
field(:realtimeSyncConfig,
155+
as:
156+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
157+
)
158+
149159
field(:refreshInterval)
150160
field(:state)
151161
field(:staticIpAddresses, type: :list)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig do
19+
@moduledoc """
20+
The configuration for realtime sync to store additional params for realtime sync.
21+
22+
## Attributes
23+
24+
* `realtimeSyncSecret` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the Secret Manager secret used for webhook secret.
25+
* `webhookUri` (*type:* `String.t`, *default:* `nil`) - Optional. Webhook url for the connector to specify additional params for realtime sync.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:realtimeSyncSecret => String.t() | nil,
32+
:webhookUri => String.t() | nil
33+
}
34+
35+
field(:realtimeSyncSecret)
36+
field(:webhookUri)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig do
42+
def decode(value, options) do
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

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

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

23-
@discovery_revision "20250322"
23+
@discovery_revision "20250331"
2424

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

clients/discovery_engine/lib/google_api/discovery_engine/v1beta/model/google_cloud_discoveryengine_v1alpha_data_connector.ex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alp
4242
* `params` (*type:* `map()`, *default:* `nil`) - Required. Params needed to access the source in the format of (Key, Value) pairs. Required parameters for all data sources: * Key: `instance_uri` * Value: type STRING. The uri to access the data source. Required parameters for sources that support OAUTH, i.e. `salesforce`: * Key: `client_id` * Value: type STRING. The client ID for the third party service provider to identify your application. * Key: `client_secret` * Value:type STRING. The client secret generated by the third party authorization server. * Key: `access_token` * Value: type STRING. OAuth token for UCS to access to the protected resource. * Key: `refresh_token` * Value: type STRING. OAuth refresh token for UCS to obtain a new access token without user interaction. Required parameters for sources that support basic API token auth, i.e. `jira`, `confluence`: * Key: `user_account` * Value: type STRING. The username or email with the source. * Key: `api_token` * Value: type STRING. The API token generated for the source account, that is used for authenticating anywhere where you would have used a password. Example: ```json { "instance_uri": "https://xxx.atlassian.net", "user_account": "[email protected]", "api_token": "test-token" } ``` Optional parameter to specify the authorization type to use for multiple authorization types support: * Key: `auth_type` * Value: type STRING. The authorization type for the data source. Supported values: `BASIC_AUTH`, `OAUTH`, `OAUTH_ACCESS_TOKEN`, `OAUTH_TWO_LEGGED`, `OAUTH_JWT_BEARER`, `OAUTH_PASSWORD_GRANT`, `JWT`, `API_TOKEN`, `FEDERATED_CREDENTIAL`.
4343
* `privateConnectivityProjectId` (*type:* `String.t`, *default:* `nil`) - Output only. The tenant project ID associated with private connectivity connectors. This project must be allowlisted by in order for the connector to function.
4444
* `realtimeState` (*type:* `String.t`, *default:* `nil`) - Output only. real-time sync state
45+
* `realtimeSyncConfig` (*type:* `GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig.t`, *default:* `nil`) - Optional. The configuration for realtime sync.
4546
* `refreshInterval` (*type:* `String.t`, *default:* `nil`) - Required. The refresh interval for data sync. If duration is set to 0, the data will be synced in real time. The streaming feature is not supported yet. The minimum is 30 minutes and maximum is 7 days.
4647
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. State of the connector.
4748
* `staticIpAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The static IP addresses used by this connector.
@@ -92,6 +93,9 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alp
9293
:params => map() | nil,
9394
:privateConnectivityProjectId => String.t() | nil,
9495
:realtimeState => String.t() | nil,
96+
:realtimeSyncConfig =>
97+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig.t()
98+
| nil,
9599
:refreshInterval => String.t() | nil,
96100
:state => String.t() | nil,
97101
:staticIpAddresses => list(String.t()) | nil,
@@ -147,6 +151,12 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alp
147151
field(:params, type: :map)
148152
field(:privateConnectivityProjectId)
149153
field(:realtimeState)
154+
155+
field(:realtimeSyncConfig,
156+
as:
157+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
158+
)
159+
150160
field(:refreshInterval)
151161
field(:state)
152162
field(:staticIpAddresses, type: :list)

0 commit comments

Comments
 (0)