Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Vault client #10822

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/vault/lib/google_api/vault/v1/api/operations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ defmodule GoogleApi.Vault.V1.Api.Operations do
end

@doc """
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion clients/vault/lib/google_api/vault/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Vault.V1 do
API client metadata for GoogleApi.Vault.V1.
"""

@discovery_revision "20220423"
@discovery_revision "20240226"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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.Vault.V1.Model.CalendarExportOptions do
@moduledoc """
The options for Calendar exports.

## Attributes

* `exportFormat` (*type:* `String.t`, *default:* `nil`) - The file format for exported text messages.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:exportFormat => String.t() | nil
}

field(:exportFormat)
end

defimpl Poison.Decoder, for: GoogleApi.Vault.V1.Model.CalendarExportOptions do
def decode(value, options) do
GoogleApi.Vault.V1.Model.CalendarExportOptions.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Vault.V1.Model.CalendarExportOptions do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
58 changes: 58 additions & 0 deletions clients/vault/lib/google_api/vault/v1/model/calendar_options.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.Vault.V1.Model.CalendarOptions do
@moduledoc """
Additional options for Calendar search

## Attributes

* `locationQuery` (*type:* `list(String.t)`, *default:* `nil`) - Matches only those events whose location contains all of the words in the given set. If the string contains quoted phrases, this method only matches those events whose location contain the exact phrase. Entries in the set are considered in "and". Word splitting example: ["New Zealand"] vs ["New","Zealand"] "New Zealand": matched by both "New and better Zealand": only matched by the later
* `minusWords` (*type:* `list(String.t)`, *default:* `nil`) - Matches only those events that do not contain any of the words in the given set in title, description, location, or attendees. Entries in the set are considered in "or".
* `peopleQuery` (*type:* `list(String.t)`, *default:* `nil`) - Matches only those events whose attendees contain all of the words in the given set. Entries in the set are considered in "and".
* `responseStatuses` (*type:* `list(String.t)`, *default:* `nil`) - Matches only events for which the custodian gave one of these responses. If the set is empty or contains ATTENDEE_RESPONSE_UNSPECIFIED there will be no filtering on responses.
* `versionDate` (*type:* `DateTime.t`, *default:* `nil`) - Search the current version of the Calendar event, but export the contents of the last version saved before 12:00 AM UTC on the specified date. Enter the date in UTC.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:locationQuery => list(String.t()) | nil,
:minusWords => list(String.t()) | nil,
:peopleQuery => list(String.t()) | nil,
:responseStatuses => list(String.t()) | nil,
:versionDate => DateTime.t() | nil
}

field(:locationQuery, type: :list)
field(:minusWords, type: :list)
field(:peopleQuery, type: :list)
field(:responseStatuses, type: :list)
field(:versionDate, as: DateTime)
end

defimpl Poison.Decoder, for: GoogleApi.Vault.V1.Model.CalendarOptions do
def decode(value, options) do
GoogleApi.Vault.V1.Model.CalendarOptions.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Vault.V1.Model.CalendarOptions do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ defmodule GoogleApi.Vault.V1.Model.CloudStorageFile do

## Attributes

* `bucketName` (*type:* `String.t`, *default:* `nil`) - The name of the Cloud Storage bucket for the export file. You can use this value in the [Cloud Storage JSON or XML APIs](https://cloud.google.com/storage/docs/apis), but not to list the bucket contents. Instead, you can [get individual export files](https://cloud.google.com/storage/docs/json_api/v1/objects/get) by object name.
* `bucketName` (*type:* `String.t`, *default:* `nil`) - The name of the Cloud Storage bucket for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api), but not to list the bucket contents. Instead, you can [get individual export files](https://cloud.google.com/storage/docs/json_api/v1/objects/get) by object name.
* `md5Hash` (*type:* `String.t`, *default:* `nil`) - The md5 hash of the file.
* `objectName` (*type:* `String.t`, *default:* `nil`) - The name of the Cloud Storage object for the export file. You can use this value in the [Cloud Storage JSON or XML APIs](https://cloud.google.com/storage/docs/apis).
* `objectName` (*type:* `String.t`, *default:* `nil`) - The name of the Cloud Storage object for the export file. You can use this value in the Cloud Storage [JSON API](https://cloud.google.com/storage/docs/json_api) or [XML API](https://cloud.google.com/storage/docs/xml-api).
* `size` (*type:* `String.t`, *default:* `nil`) - The export file size.
"""

Expand Down
3 changes: 3 additions & 0 deletions clients/vault/lib/google_api/vault/v1/model/export.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule GoogleApi.Vault.V1.Model.Export do
* `id` (*type:* `String.t`, *default:* `nil`) - Output only. The generated export ID.
* `matterId` (*type:* `String.t`, *default:* `nil`) - Output only. The matter ID.
* `name` (*type:* `String.t`, *default:* `nil`) - The export name. Don't use special characters (~!$'(),;@:/?) in the name, they can prevent you from downloading exports.
* `parentExportId` (*type:* `String.t`, *default:* `nil`) - Output only. Identifies the parent export that spawned this child export. This is only set on child exports.
* `query` (*type:* `GoogleApi.Vault.V1.Model.Query.t`, *default:* `nil`) - The query parameters used to create the export.
* `requester` (*type:* `GoogleApi.Vault.V1.Model.UserInfo.t`, *default:* `nil`) - Output only. The requester of the export.
* `stats` (*type:* `GoogleApi.Vault.V1.Model.ExportStats.t`, *default:* `nil`) - Output only. Details about the export progress and size.
Expand All @@ -42,6 +43,7 @@ defmodule GoogleApi.Vault.V1.Model.Export do
:id => String.t() | nil,
:matterId => String.t() | nil,
:name => String.t() | nil,
:parentExportId => String.t() | nil,
:query => GoogleApi.Vault.V1.Model.Query.t() | nil,
:requester => GoogleApi.Vault.V1.Model.UserInfo.t() | nil,
:stats => GoogleApi.Vault.V1.Model.ExportStats.t() | nil,
Expand All @@ -54,6 +56,7 @@ defmodule GoogleApi.Vault.V1.Model.Export do
field(:id)
field(:matterId)
field(:name)
field(:parentExportId)
field(:query, as: GoogleApi.Vault.V1.Model.Query)
field(:requester, as: GoogleApi.Vault.V1.Model.UserInfo)
field(:stats, as: GoogleApi.Vault.V1.Model.ExportStats)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.Vault.V1.Model.ExportOptions do

## Attributes

* `calendarOptions` (*type:* `GoogleApi.Vault.V1.Model.CalendarExportOptions.t`, *default:* `nil`) - Option available for Calendar export.
* `driveOptions` (*type:* `GoogleApi.Vault.V1.Model.DriveExportOptions.t`, *default:* `nil`) - Options for Drive exports.
* `groupsOptions` (*type:* `GoogleApi.Vault.V1.Model.GroupsExportOptions.t`, *default:* `nil`) - Options for Groups exports.
* `hangoutsChatOptions` (*type:* `GoogleApi.Vault.V1.Model.HangoutsChatExportOptions.t`, *default:* `nil`) - Options for Chat exports.
Expand All @@ -32,6 +33,7 @@ defmodule GoogleApi.Vault.V1.Model.ExportOptions do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:calendarOptions => GoogleApi.Vault.V1.Model.CalendarExportOptions.t() | nil,
:driveOptions => GoogleApi.Vault.V1.Model.DriveExportOptions.t() | nil,
:groupsOptions => GoogleApi.Vault.V1.Model.GroupsExportOptions.t() | nil,
:hangoutsChatOptions => GoogleApi.Vault.V1.Model.HangoutsChatExportOptions.t() | nil,
Expand All @@ -40,6 +42,7 @@ defmodule GoogleApi.Vault.V1.Model.ExportOptions do
:voiceOptions => GoogleApi.Vault.V1.Model.VoiceExportOptions.t() | nil
}

field(:calendarOptions, as: GoogleApi.Vault.V1.Model.CalendarExportOptions)
field(:driveOptions, as: GoogleApi.Vault.V1.Model.DriveExportOptions)
field(:groupsOptions, as: GoogleApi.Vault.V1.Model.GroupsExportOptions)
field(:hangoutsChatOptions, as: GoogleApi.Vault.V1.Model.HangoutsChatExportOptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.Vault.V1.Model.HangoutsChatInfo do

## Attributes

* `roomId` (*type:* `list(String.t)`, *default:* `nil`) - A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/hangouts/chat).
* `roomId` (*type:* `list(String.t)`, *default:* `nil`) - A list of Chat spaces IDs, as provided by the [Chat API](https://developers.google.com/chat). There is a limit of exporting from 500 Chat spaces per request.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.Vault.V1.Model.MailExportOptions do
## Attributes

* `exportFormat` (*type:* `String.t`, *default:* `nil`) - The file format for exported messages.
* `exportLinkedDriveFiles` (*type:* `boolean()`, *default:* `nil`) - Optional. To enable exporting linked Drive files, set to **true**.
* `showConfidentialModeContent` (*type:* `boolean()`, *default:* `nil`) - To export confidential mode content, set to **true**.
* `useNewExport` (*type:* `boolean()`, *default:* `nil`) - To use the new export system, set to **true**.
"""
Expand All @@ -30,11 +31,13 @@ defmodule GoogleApi.Vault.V1.Model.MailExportOptions do

@type t :: %__MODULE__{
:exportFormat => String.t() | nil,
:exportLinkedDriveFiles => boolean() | nil,
:showConfidentialModeContent => boolean() | nil,
:useNewExport => boolean() | nil
}

field(:exportFormat)
field(:exportLinkedDriveFiles)
field(:showConfidentialModeContent)
field(:useNewExport)
end
Expand Down
3 changes: 3 additions & 0 deletions clients/vault/lib/google_api/vault/v1/model/mail_options.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ defmodule GoogleApi.Vault.V1.Model.MailOptions do

## Attributes

* `clientSideEncryptedOption` (*type:* `String.t`, *default:* `nil`) - Specifies whether the results should include encrypted content, unencrypted content, or both. Defaults to including both.
* `excludeDrafts` (*type:* `boolean()`, *default:* `nil`) - Set to **true** to exclude drafts.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:clientSideEncryptedOption => String.t() | nil,
:excludeDrafts => boolean() | nil
}

field(:clientSideEncryptedOption)
field(:excludeDrafts)
end

Expand Down
2 changes: 1 addition & 1 deletion clients/vault/lib/google_api/vault/v1/model/operation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule GoogleApi.Vault.V1.Model.Operation do
* `error` (*type:* `GoogleApi.Vault.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation.
* `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
* `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
"""

use GoogleApi.Gax.ModelBase
Expand Down
3 changes: 3 additions & 0 deletions clients/vault/lib/google_api/vault/v1/model/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do
## Attributes

* `accountInfo` (*type:* `GoogleApi.Vault.V1.Model.AccountInfo.t`, *default:* `nil`) - Required when **SearchMethod** is **ACCOUNT**.
* `calendarOptions` (*type:* `GoogleApi.Vault.V1.Model.CalendarOptions.t`, *default:* `nil`) - Set Calendar search-specific options.
* `corpus` (*type:* `String.t`, *default:* `nil`) - The Google Workspace service to search.
* `dataScope` (*type:* `String.t`, *default:* `nil`) - The data source to search.
* `driveOptions` (*type:* `GoogleApi.Vault.V1.Model.DriveOptions.t`, *default:* `nil`) - Set Drive search-specific options.
Expand All @@ -45,6 +46,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do

@type t :: %__MODULE__{
:accountInfo => GoogleApi.Vault.V1.Model.AccountInfo.t() | nil,
:calendarOptions => GoogleApi.Vault.V1.Model.CalendarOptions.t() | nil,
:corpus => String.t() | nil,
:dataScope => String.t() | nil,
:driveOptions => GoogleApi.Vault.V1.Model.DriveOptions.t() | nil,
Expand All @@ -65,6 +67,7 @@ defmodule GoogleApi.Vault.V1.Model.Query do
}

field(:accountInfo, as: GoogleApi.Vault.V1.Model.AccountInfo)
field(:calendarOptions, as: GoogleApi.Vault.V1.Model.CalendarOptions)
field(:corpus)
field(:dataScope)
field(:driveOptions, as: GoogleApi.Vault.V1.Model.DriveOptions)
Expand Down
Loading