Skip to content

Commit 32c9f05

Browse files
feat: Automated regeneration of Vault client (googleapis#13011)
Auto-created at 2025-02-20 13:19:58 +0000 using the toys pull request generator.
1 parent fdd7b0c commit 32c9f05

File tree

4 files changed

+96
-1
lines changed

4 files changed

+96
-1
lines changed

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

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

23-
@discovery_revision "20250130"
23+
@discovery_revision "20250212"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Vault.V1.Model.DriveDocumentIds do
19+
@moduledoc """
20+
Specify Drive documents by document ID.
21+
22+
## Attributes
23+
24+
* `ids` (*type:* `list(String.t)`, *default:* `nil`) - Required. A list of Drive document IDs.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:ids => list(String.t()) | nil
31+
}
32+
33+
field(:ids, type: :list)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Vault.V1.Model.DriveDocumentIds do
37+
def decode(value, options) do
38+
GoogleApi.Vault.V1.Model.DriveDocumentIds.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Vault.V1.Model.DriveDocumentIds do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Vault.V1.Model.DriveDocumentInfo do
19+
@moduledoc """
20+
The Drive documents to search.
21+
22+
## Attributes
23+
24+
* `documentIds` (*type:* `GoogleApi.Vault.V1.Model.DriveDocumentIds.t`, *default:* `nil`) - Specify Drive documents by document ID.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:documentIds => GoogleApi.Vault.V1.Model.DriveDocumentIds.t() | nil
31+
}
32+
33+
field(:documentIds, as: GoogleApi.Vault.V1.Model.DriveDocumentIds)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Vault.V1.Model.DriveDocumentInfo do
37+
def decode(value, options) do
38+
GoogleApi.Vault.V1.Model.DriveDocumentInfo.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Vault.V1.Model.DriveDocumentInfo do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/vault/lib/google_api/vault/v1/model/query.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do
2525
* `calendarOptions` (*type:* `GoogleApi.Vault.V1.Model.CalendarOptions.t`, *default:* `nil`) - Set Calendar search-specific options.
2626
* `corpus` (*type:* `String.t`, *default:* `nil`) - The Google Workspace service to search.
2727
* `dataScope` (*type:* `String.t`, *default:* `nil`) - The data source to search.
28+
* `driveDocumentInfo` (*type:* `GoogleApi.Vault.V1.Model.DriveDocumentInfo.t`, *default:* `nil`) - Required when **SearchMethod** is **DRIVE_DOCUMENT**.
2829
* `driveOptions` (*type:* `GoogleApi.Vault.V1.Model.DriveOptions.t`, *default:* `nil`) - Set Drive search-specific options.
2930
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The end time for the search query. Specify in GMT. The value is rounded to 12 AM on the specified date.
3031
* `geminiOptions` (*type:* `GoogleApi.Vault.V1.Model.GeminiOptions.t`, *default:* `nil`) - Set Gemini search-specific options.
@@ -50,6 +51,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do
5051
:calendarOptions => GoogleApi.Vault.V1.Model.CalendarOptions.t() | nil,
5152
:corpus => String.t() | nil,
5253
:dataScope => String.t() | nil,
54+
:driveDocumentInfo => GoogleApi.Vault.V1.Model.DriveDocumentInfo.t() | nil,
5355
:driveOptions => GoogleApi.Vault.V1.Model.DriveOptions.t() | nil,
5456
:endTime => DateTime.t() | nil,
5557
:geminiOptions => GoogleApi.Vault.V1.Model.GeminiOptions.t() | nil,
@@ -72,6 +74,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do
7274
field(:calendarOptions, as: GoogleApi.Vault.V1.Model.CalendarOptions)
7375
field(:corpus)
7476
field(:dataScope)
77+
field(:driveDocumentInfo, as: GoogleApi.Vault.V1.Model.DriveDocumentInfo)
7578
field(:driveOptions, as: GoogleApi.Vault.V1.Model.DriveOptions)
7679
field(:endTime, as: DateTime)
7780
field(:geminiOptions, as: GoogleApi.Vault.V1.Model.GeminiOptions)

0 commit comments

Comments
 (0)