From a19978b171a9b7333f5476495ca53c9ba4647983 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 Jun 2024 13:11:58 +0000 Subject: [PATCH] feat: Automated regeneration of CivicInfo client --- clients/civic_info/README.md | 2 +- .../lib/google_api/civic_info/v2/api/elections.ex | 8 ++++---- .../civic_info/lib/google_api/civic_info/v2/metadata.ex | 2 +- clients/civic_info/mix.exs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/clients/civic_info/README.md b/clients/civic_info/README.md index 75138cf3e3..203bb03935 100644 --- a/clients/civic_info/README.md +++ b/clients/civic_info/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_civic_info, "~> 0.21"}] + [{:google_api_civic_info, "~> 0.22"}] end ``` diff --git a/clients/civic_info/lib/google_api/civic_info/v2/api/elections.ex b/clients/civic_info/lib/google_api/civic_info/v2/api/elections.ex index 90b81be748..303e116171 100644 --- a/clients/civic_info/lib/google_api/civic_info/v2/api/elections.ex +++ b/clients/civic_info/lib/google_api/civic_info/v2/api/elections.ex @@ -90,7 +90,6 @@ defmodule GoogleApi.CivicInfo.V2.Api.Elections do ## Parameters * `connection` (*type:* `GoogleApi.CivicInfo.V2.Connection.t`) - Connection to server - * `address` (*type:* `String.t`) - The registered address of the voter to look up. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -103,6 +102,7 @@ defmodule GoogleApi.CivicInfo.V2.Api.Elections do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:address` (*type:* `String.t`) - The registered address of the voter to look up. * `:electionId` (*type:* `String.t`) - The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections. If no election ID is specified in the query and there is more than one election with data for the given voter, the additional elections are provided in the otherElections response field. * `:officialOnly` (*type:* `boolean()`) - If set to true, only data from official state sources will be returned. * `:productionDataOnly` (*type:* `boolean()`) - Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config. @@ -114,12 +114,12 @@ defmodule GoogleApi.CivicInfo.V2.Api.Elections do * `{:ok, %GoogleApi.CivicInfo.V2.Model.VoterInfoResponse{}}` on success * `{:error, info}` on failure """ - @spec civicinfo_elections_voter_info_query(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + @spec civicinfo_elections_voter_info_query(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.CivicInfo.V2.Model.VoterInfoResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def civicinfo_elections_voter_info_query(connection, address, optional_params \\ [], opts \\ []) do + def civicinfo_elections_voter_info_query(connection, optional_params \\ [], opts \\ []) do optional_params_config = %{ :"$.xgafv" => :query, :access_token => :query, @@ -132,6 +132,7 @@ defmodule GoogleApi.CivicInfo.V2.Api.Elections do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :address => :query, :electionId => :query, :officialOnly => :query, :productionDataOnly => :query, @@ -142,7 +143,6 @@ defmodule GoogleApi.CivicInfo.V2.Api.Elections do Request.new() |> Request.method(:get) |> Request.url("/civicinfo/v2/voterinfo", %{}) - |> Request.add_param(:query, :address, address) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) diff --git a/clients/civic_info/lib/google_api/civic_info/v2/metadata.ex b/clients/civic_info/lib/google_api/civic_info/v2/metadata.ex index 3365f4483f..5390cb39c7 100644 --- a/clients/civic_info/lib/google_api/civic_info/v2/metadata.ex +++ b/clients/civic_info/lib/google_api/civic_info/v2/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.CivicInfo.V2 do API client metadata for GoogleApi.CivicInfo.V2. """ - @discovery_revision "20240305" + @discovery_revision "20240611" def discovery_revision(), do: @discovery_revision end diff --git a/clients/civic_info/mix.exs b/clients/civic_info/mix.exs index b21ca49d6a..7a01583ac3 100644 --- a/clients/civic_info/mix.exs +++ b/clients/civic_info/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.CivicInfo.Mixfile do use Mix.Project - @version "0.21.0" + @version "0.22.0" def project() do [