-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of DiscoveryEngine client (#12898)
Auto-created at 2025-01-31 13:11:10 +0000 using the toys pull request generator.
- Loading branch information
1 parent
fb8013f
commit 4b06ad3
Showing
35 changed files
with
2,081 additions
and
12 deletions.
There are no files selected for viewing
544 changes: 544 additions & 0 deletions
544
clients/discovery_engine/lib/google_api/discovery_engine/v1/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...v1/model/google_cloud_discoveryengine_v1_control_boost_action_interpolation_boost_spec.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do | ||
@moduledoc """ | ||
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above. | ||
## Attributes | ||
* `attributeType` (*type:* `String.t`, *default:* `nil`) - Optional. The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value). | ||
* `controlPoints` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.t)`, *default:* `nil`) - Optional. The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here. | ||
* `fieldName` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the field whose value will be used to determine the boost amount. | ||
* `interpolationType` (*type:* `String.t`, *default:* `nil`) - Optional. The interpolation type to be applied to connect the control points listed below. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:attributeType => String.t() | nil, | ||
:controlPoints => | ||
list( | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.t() | ||
) | ||
| nil, | ||
:fieldName => String.t() | nil, | ||
:interpolationType => String.t() | nil | ||
} | ||
|
||
field(:attributeType) | ||
|
||
field(:controlPoints, | ||
as: | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint, | ||
type: :list | ||
) | ||
|
||
field(:fieldName) | ||
field(:interpolationType) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do | ||
def decode(value, options) do | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
56 changes: 56 additions & 0 deletions
56
...e_cloud_discoveryengine_v1_control_boost_action_interpolation_boost_spec_control_point.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do | ||
@moduledoc """ | ||
The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable). | ||
## Attributes | ||
* `attributeValue` (*type:* `String.t`, *default:* `nil`) - Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 duration value). The pattern for this is: `nDnM]`. | ||
* `boostAmount` (*type:* `number()`, *default:* `nil`) - Optional. The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:attributeValue => String.t() | nil, | ||
:boostAmount => number() | nil | ||
} | ||
|
||
field(:attributeValue) | ||
field(:boostAmount) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do | ||
def decode(value, options) do | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
54 changes: 54 additions & 0 deletions
54
.../discovery_engine/v1/model/google_cloud_discoveryengine_v1_delete_cmek_config_metadata.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do | ||
@moduledoc """ | ||
Metadata related to the progress of the CmekConfigService.DeleteCmekConfig operation. This will be returned by the google.longrunning.Operation.metadata field. | ||
## Attributes | ||
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation create time. | ||
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation last update time. If the operation is done, this is also the finish time. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:createTime => DateTime.t() | nil, | ||
:updateTime => DateTime.t() | nil | ||
} | ||
|
||
field(:createTime, as: DateTime) | ||
field(:updateTime, as: DateTime) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do | ||
def decode(value, options) do | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
57 changes: 57 additions & 0 deletions
57
...e_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_identity_mapping_entry.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do | ||
@moduledoc """ | ||
Identity Mapping Entry that maps an external identity to an internal identity. | ||
## Attributes | ||
* `externalIdentity` (*type:* `String.t`, *default:* `nil`) - Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters. | ||
* `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, group_id is the mapped group identifier configured during the workforcepool config. | ||
* `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_id is the mapped user identifier configured during the workforcepool config. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:externalIdentity => String.t() | nil, | ||
:groupId => String.t() | nil, | ||
:userId => String.t() | nil | ||
} | ||
|
||
field(:externalIdentity) | ||
field(:groupId) | ||
field(:userId) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do | ||
def decode(value, options) do | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
59 changes: 59 additions & 0 deletions
59
...e_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_identity_mapping_store.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# NOTE: This file is auto generated by the elixir code generator program. | ||
# Do not edit this file manually. | ||
|
||
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do | ||
@moduledoc """ | ||
Identity Mapping Store which contains Identity Mapping Entries. | ||
## Attributes | ||
* `cmekConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t`, *default:* `nil`) - Output only. CMEK-related information for the Identity Mapping Store. | ||
* `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Input only. The KMS key to be used to protect this Identity Mapping Store at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the Identity Mapping Store will be protected by the KMS key, as indicated in the cmek_config field. | ||
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The full resource name of the identity mapping store. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:cmekConfig => | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t() | nil, | ||
:kmsKeyName => String.t() | nil, | ||
:name => String.t() | nil | ||
} | ||
|
||
field(:cmekConfig, as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig) | ||
|
||
field(:kmsKeyName) | ||
field(:name) | ||
end | ||
|
||
defimpl Poison.Decoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do | ||
def decode(value, options) do | ||
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore.decode( | ||
value, | ||
options | ||
) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, | ||
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
Oops, something went wrong.