Skip to content

Commit

Permalink
feat: Automated regeneration of AppEngine client (#12665)
Browse files Browse the repository at this point in the history
Auto-created at 2024-12-08 13:14:41 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Dec 8, 2024
1 parent 47fcc18 commit d283ace
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/app_engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_app_engine, "~> 0.42"}]
[{:google_api_app_engine, "~> 0.43"}]
end
```

Expand Down
85 changes: 85 additions & 0 deletions clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,91 @@ defmodule GoogleApi.AppEngine.V1.Api.Projects do
)
end

@doc """
Deletes the specified service and all enclosed versions.
## Parameters
* `connection` (*type:* `GoogleApi.AppEngine.V1.Connection.t`) - Connection to server
* `projects_id` (*type:* `String.t`) - Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
* `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
* `applications_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
* `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
* `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.AppEngine.V1.Model.Operation{}}` on success
* `{:error, info}` on failure
"""
@spec appengine_projects_locations_applications_services_delete(
Tesla.Env.client(),
String.t(),
String.t(),
String.t(),
String.t(),
keyword(),
keyword()
) ::
{:ok, GoogleApi.AppEngine.V1.Model.Operation.t()}
| {:ok, Tesla.Env.t()}
| {:ok, list()}
| {:error, any()}
def appengine_projects_locations_applications_services_delete(
connection,
projects_id,
locations_id,
applications_id,
services_id,
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(:delete)
|> Request.url(
"/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}",
%{
"projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1),
"locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1),
"applicationsId" => URI.encode(applications_id, &URI.char_unreserved?/1),
"servicesId" => URI.encode(services_id, &(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.AppEngine.V1.Model.Operation{}])
end

@doc """
Deletes an existing Version resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AppEngine.V1 do
API client metadata for GoogleApi.AppEngine.V1.
"""

@discovery_revision "20241118"
@discovery_revision "20241205"

def discovery_revision(), do: @discovery_revision
end
2 changes: 1 addition & 1 deletion clients/app_engine/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.AppEngine.Mixfile do
use Mix.Project

@version "0.42.0"
@version "0.43.0"

def project() do
[
Expand Down

0 comments on commit d283ace

Please sign in to comment.