From 2b06a4a167422ad48239dcafae627a48fa4acf4f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 01:20:39 +0000 Subject: [PATCH] feat: Automated regeneration of Vault client --- .../lib/google_api/vault/v1/api/operations.ex | 2 +- .../vault/lib/google_api/vault/v1/metadata.ex | 2 +- .../vault/v1/model/calendar_export_options.ex | 46 +++++++++++++++ .../vault/v1/model/calendar_options.ex | 58 +++++++++++++++++++ .../vault/v1/model/cloud_storage_file.ex | 4 +- .../lib/google_api/vault/v1/model/export.ex | 3 + .../vault/v1/model/export_options.ex | 3 + .../vault/v1/model/hangouts_chat_info.ex | 2 +- .../vault/v1/model/mail_export_options.ex | 3 + .../google_api/vault/v1/model/mail_options.ex | 3 + .../google_api/vault/v1/model/operation.ex | 2 +- .../lib/google_api/vault/v1/model/query.ex | 3 + 12 files changed, 125 insertions(+), 6 deletions(-) create mode 100644 clients/vault/lib/google_api/vault/v1/model/calendar_export_options.ex create mode 100644 clients/vault/lib/google_api/vault/v1/model/calendar_options.ex diff --git a/clients/vault/lib/google_api/vault/v1/api/operations.ex b/clients/vault/lib/google_api/vault/v1/api/operations.ex index f34b0ad0c5..b04091b59e 100644 --- a/clients/vault/lib/google_api/vault/v1/api/operations.ex +++ b/clients/vault/lib/google_api/vault/v1/api/operations.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/metadata.ex b/clients/vault/lib/google_api/vault/v1/metadata.ex index 62191fa00d..f9264ca2b9 100644 --- a/clients/vault/lib/google_api/vault/v1/metadata.ex +++ b/clients/vault/lib/google_api/vault/v1/metadata.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/calendar_export_options.ex b/clients/vault/lib/google_api/vault/v1/model/calendar_export_options.ex new file mode 100644 index 0000000000..33d39c4888 --- /dev/null +++ b/clients/vault/lib/google_api/vault/v1/model/calendar_export_options.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/calendar_options.ex b/clients/vault/lib/google_api/vault/v1/model/calendar_options.ex new file mode 100644 index 0000000000..87ae38fa2c --- /dev/null +++ b/clients/vault/lib/google_api/vault/v1/model/calendar_options.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex b/clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex index 5eb9f16ebc..d97a16e335 100644 --- a/clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex +++ b/clients/vault/lib/google_api/vault/v1/model/cloud_storage_file.ex @@ -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. """ diff --git a/clients/vault/lib/google_api/vault/v1/model/export.ex b/clients/vault/lib/google_api/vault/v1/model/export.ex index b7fe8f7be1..51e0bf089c 100644 --- a/clients/vault/lib/google_api/vault/v1/model/export.ex +++ b/clients/vault/lib/google_api/vault/v1/model/export.ex @@ -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. @@ -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, @@ -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) diff --git a/clients/vault/lib/google_api/vault/v1/model/export_options.ex b/clients/vault/lib/google_api/vault/v1/model/export_options.ex index 3445d84f3e..a26d645604 100644 --- a/clients/vault/lib/google_api/vault/v1/model/export_options.ex +++ b/clients/vault/lib/google_api/vault/v1/model/export_options.ex @@ -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. @@ -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, @@ -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) diff --git a/clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex b/clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex index 1f71bb0953..5794ed47e1 100644 --- a/clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex +++ b/clients/vault/lib/google_api/vault/v1/model/hangouts_chat_info.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/mail_export_options.ex b/clients/vault/lib/google_api/vault/v1/model/mail_export_options.ex index 611ea8e227..24fabb164d 100644 --- a/clients/vault/lib/google_api/vault/v1/model/mail_export_options.ex +++ b/clients/vault/lib/google_api/vault/v1/model/mail_export_options.ex @@ -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**. """ @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/mail_options.ex b/clients/vault/lib/google_api/vault/v1/model/mail_options.ex index e98e39ef01..198be66e65 100644 --- a/clients/vault/lib/google_api/vault/v1/model/mail_options.ex +++ b/clients/vault/lib/google_api/vault/v1/model/mail_options.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/operation.ex b/clients/vault/lib/google_api/vault/v1/model/operation.ex index bf6ebe9822..a3d6aa9dda 100644 --- a/clients/vault/lib/google_api/vault/v1/model/operation.ex +++ b/clients/vault/lib/google_api/vault/v1/model/operation.ex @@ -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 diff --git a/clients/vault/lib/google_api/vault/v1/model/query.ex b/clients/vault/lib/google_api/vault/v1/model/query.ex index 2f6e81f0dc..a8021f14c9 100644 --- a/clients/vault/lib/google_api/vault/v1/model/query.ex +++ b/clients/vault/lib/google_api/vault/v1/model/query.ex @@ -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. @@ -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, @@ -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)