From 774c03b44ce41594ed87564b7e96dea853348ee6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 12 Mar 2024 02:45:06 +0000 Subject: [PATCH] feat: Automated regeneration of GamesConfiguration client --- clients/games_configuration/README.md | 2 +- .../api/image_configurations.ex | 279 ------------------ .../v1configuration/metadata.ex | 2 +- .../model/image_configuration.ex | 55 ---- clients/games_configuration/mix.exs | 2 +- 5 files changed, 3 insertions(+), 337 deletions(-) delete mode 100644 clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex delete mode 100644 clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex diff --git a/clients/games_configuration/README.md b/clients/games_configuration/README.md index f7bfaddcac..221232e2cf 100644 --- a/clients/games_configuration/README.md +++ b/clients/games_configuration/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_games_configuration, "~> 0.11"}] + [{:google_api_games_configuration, "~> 0.12"}] end ``` diff --git a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex b/clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex deleted file mode 100644 index 263451decb..0000000000 --- a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/api/image_configurations.ex +++ /dev/null @@ -1,279 +0,0 @@ -# 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.GamesConfiguration.V1configuration.Api.ImageConfigurations do - @moduledoc """ - API calls for all endpoints tagged `ImageConfigurations`. - """ - - alias GoogleApi.GamesConfiguration.V1configuration.Connection - alias GoogleApi.Gax.{Request, Response} - - @library_version Mix.Project.config() |> Keyword.get(:version, "") - - @doc """ - Uploads an image for a resource with the given ID and image type. - - ## Parameters - - * `connection` (*type:* `GoogleApi.GamesConfiguration.V1configuration.Connection.t`) - Connection to server - * `resource_id` (*type:* `String.t`) - The ID of the resource used by this method. - * `image_type` (*type:* `String.t`) - Selects which image in a resource for this method. - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. - * `:access_token` (*type:* `String.t`) - OAuth access token. - * `:alt` (*type:* `String.t`) - Data format for response. - * `:callback` (*type:* `String.t`) - JSONP - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `: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"). - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}}` on success - * `{:error, info}` on failure - """ - @spec games_configuration_image_configurations_upload( - Tesla.Env.client(), - String.t(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def games_configuration_image_configurations_upload( - connection, - resource_id, - image_type, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :"$.xgafv" => :query, - :access_token => :query, - :alt => :query, - :callback => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :uploadType => :query, - :upload_protocol => :query - } - - request = - Request.new() - |> Request.method(:post) - |> Request.url("/games/v1configuration/images/{resourceId}/imageType/{imageType}", %{ - "resourceId" => URI.encode(resource_id, &URI.char_unreserved?/1), - "imageType" => URI.encode(image_type, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}] - ) - end - - @doc """ - Uploads an image for a resource with the given ID and image type. - - ## Parameters - - * `connection` (*type:* `GoogleApi.GamesConfiguration.V1configuration.Connection.t`) - Connection to server - * `resource_id` (*type:* `String.t`) - The ID of the resource used by this method. - * `image_type` (*type:* `String.t`) - Selects which image in a resource for this method. - * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". - * `metadata` (*type:* `String.t`) - string metadata - * `data` (*type:* `iodata`) - Content to upload, as a string or iolist - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. - * `:access_token` (*type:* `String.t`) - OAuth access token. - * `:alt` (*type:* `String.t`) - Data format for response. - * `:callback` (*type:* `String.t`) - JSONP - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `: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"). - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}}` on success - * `{:error, info}` on failure - """ - @spec games_configuration_image_configurations_upload_iodata( - Tesla.Env.client(), - String.t(), - String.t(), - String.t(), - String.t(), - iodata, - keyword(), - keyword() - ) :: - {:ok, GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def games_configuration_image_configurations_upload_iodata( - connection, - resource_id, - image_type, - upload_type, - metadata, - data, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :"$.xgafv" => :query, - :access_token => :query, - :alt => :query, - :callback => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :uploadType => :query, - :upload_protocol => :query - } - - request = - Request.new() - |> Request.method(:post) - |> Request.url("/upload/games/v1configuration/images/{resourceId}/imageType/{imageType}", %{ - "resourceId" => URI.encode(resource_id, &URI.char_unreserved?/1), - "imageType" => URI.encode(image_type, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) - |> Request.add_param(:query, :uploadType, upload_type) - |> Request.add_param(:body, :metadata, metadata) - |> Request.add_param(:body, :data, data) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}] - ) - end - - @doc """ - Uploads an image for a resource with the given ID and image type. - - ## Parameters - - * `connection` (*type:* `GoogleApi.GamesConfiguration.V1configuration.Connection.t`) - Connection to server - * `resource_id` (*type:* `String.t`) - The ID of the resource used by this method. - * `image_type` (*type:* `String.t`) - Selects which image in a resource for this method. - * `upload_type` (*type:* `String.t`) - Upload type. Must be "multipart". - * `metadata` (*type:* `String.t`) - string metadata - * `data` (*type:* `String.t`) - Path to file containing content to upload - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. - * `:access_token` (*type:* `String.t`) - OAuth access token. - * `:alt` (*type:* `String.t`) - Data format for response. - * `:callback` (*type:* `String.t`) - JSONP - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `: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"). - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}}` on success - * `{:error, info}` on failure - """ - @spec games_configuration_image_configurations_upload_simple( - Tesla.Env.client(), - String.t(), - String.t(), - String.t(), - String.t(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def games_configuration_image_configurations_upload_simple( - connection, - resource_id, - image_type, - upload_type, - metadata, - data, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :"$.xgafv" => :query, - :access_token => :query, - :alt => :query, - :callback => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :uploadType => :query, - :upload_protocol => :query - } - - request = - Request.new() - |> Request.method(:post) - |> Request.url("/upload/games/v1configuration/images/{resourceId}/imageType/{imageType}", %{ - "resourceId" => URI.encode(resource_id, &URI.char_unreserved?/1), - "imageType" => URI.encode(image_type, &(URI.char_unreserved?(&1) || &1 == ?/)) - }) - |> Request.add_param(:query, :uploadType, upload_type) - |> Request.add_param(:body, :metadata, metadata) - |> Request.add_param(:file, :data, data) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration{}] - ) - end -end diff --git a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/metadata.ex b/clients/games_configuration/lib/google_api/games_configuration/v1configuration/metadata.ex index 3793c429e5..371a5c5a9e 100644 --- a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/metadata.ex +++ b/clients/games_configuration/lib/google_api/games_configuration/v1configuration/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.GamesConfiguration.V1configuration do API client metadata for GoogleApi.GamesConfiguration.V1configuration. """ - @discovery_revision "20210304" + @discovery_revision "20240306" def discovery_revision(), do: @discovery_revision end diff --git a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex b/clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex deleted file mode 100644 index 2eea7f62b8..0000000000 --- a/clients/games_configuration/lib/google_api/games_configuration/v1configuration/model/image_configuration.ex +++ /dev/null @@ -1,55 +0,0 @@ -# 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.GamesConfiguration.V1configuration.Model.ImageConfiguration do - @moduledoc """ - An image configuration resource. - - ## Attributes - - * `imageType` (*type:* `String.t`, *default:* `nil`) - The image type for the image. - * `kind` (*type:* `String.t`, *default:* `nil`) - Uniquely identifies the type of this resource. Value is always the fixed string `gamesConfiguration#imageConfiguration`. - * `resourceId` (*type:* `String.t`, *default:* `nil`) - The resource ID of resource which the image belongs to. - * `url` (*type:* `String.t`, *default:* `nil`) - The url for this image. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :imageType => String.t() | nil, - :kind => String.t() | nil, - :resourceId => String.t() | nil, - :url => String.t() | nil - } - - field(:imageType) - field(:kind) - field(:resourceId) - field(:url) -end - -defimpl Poison.Decoder, for: GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration do - def decode(value, options) do - GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.GamesConfiguration.V1configuration.Model.ImageConfiguration do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/games_configuration/mix.exs b/clients/games_configuration/mix.exs index 4f736b3e9b..e02bf2839b 100644 --- a/clients/games_configuration/mix.exs +++ b/clients/games_configuration/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.GamesConfiguration.Mixfile do use Mix.Project - @version "0.11.0" + @version "0.12.0" def project() do [