Skip to content

Commit d283ace

Browse files
feat: Automated regeneration of AppEngine client (googleapis#12665)
Auto-created at 2024-12-08 13:14:41 +0000 using the toys pull request generator.
1 parent 47fcc18 commit d283ace

File tree

4 files changed

+88
-3
lines changed

4 files changed

+88
-3
lines changed

clients/app_engine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_app_engine, "~> 0.42"}]
14+
[{:google_api_app_engine, "~> 0.43"}]
1515
end
1616
```
1717

clients/app_engine/lib/google_api/app_engine/v1/api/projects.ex

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,91 @@ defmodule GoogleApi.AppEngine.V1.Api.Projects do
112112
)
113113
end
114114

115+
@doc """
116+
Deletes the specified service and all enclosed versions.
117+
118+
## Parameters
119+
120+
* `connection` (*type:* `GoogleApi.AppEngine.V1.Connection.t`) - Connection to server
121+
* `projects_id` (*type:* `String.t`) - Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.
122+
* `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
123+
* `applications_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
124+
* `services_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
125+
* `optional_params` (*type:* `keyword()`) - Optional parameters
126+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
127+
* `:access_token` (*type:* `String.t`) - OAuth access token.
128+
* `:alt` (*type:* `String.t`) - Data format for response.
129+
* `:callback` (*type:* `String.t`) - JSONP
130+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
131+
* `: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.
132+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
133+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
134+
* `: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.
135+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
136+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
137+
* `opts` (*type:* `keyword()`) - Call options
138+
139+
## Returns
140+
141+
* `{:ok, %GoogleApi.AppEngine.V1.Model.Operation{}}` on success
142+
* `{:error, info}` on failure
143+
"""
144+
@spec appengine_projects_locations_applications_services_delete(
145+
Tesla.Env.client(),
146+
String.t(),
147+
String.t(),
148+
String.t(),
149+
String.t(),
150+
keyword(),
151+
keyword()
152+
) ::
153+
{:ok, GoogleApi.AppEngine.V1.Model.Operation.t()}
154+
| {:ok, Tesla.Env.t()}
155+
| {:ok, list()}
156+
| {:error, any()}
157+
def appengine_projects_locations_applications_services_delete(
158+
connection,
159+
projects_id,
160+
locations_id,
161+
applications_id,
162+
services_id,
163+
optional_params \\ [],
164+
opts \\ []
165+
) do
166+
optional_params_config = %{
167+
:"$.xgafv" => :query,
168+
:access_token => :query,
169+
:alt => :query,
170+
:callback => :query,
171+
:fields => :query,
172+
:key => :query,
173+
:oauth_token => :query,
174+
:prettyPrint => :query,
175+
:quotaUser => :query,
176+
:uploadType => :query,
177+
:upload_protocol => :query
178+
}
179+
180+
request =
181+
Request.new()
182+
|> Request.method(:delete)
183+
|> Request.url(
184+
"/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}",
185+
%{
186+
"projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1),
187+
"locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1),
188+
"applicationsId" => URI.encode(applications_id, &URI.char_unreserved?/1),
189+
"servicesId" => URI.encode(services_id, &(URI.char_unreserved?(&1) || &1 == ?/))
190+
}
191+
)
192+
|> Request.add_optional_params(optional_params_config, optional_params)
193+
|> Request.library_version(@library_version)
194+
195+
connection
196+
|> Connection.execute(request)
197+
|> Response.decode(opts ++ [struct: %GoogleApi.AppEngine.V1.Model.Operation{}])
198+
end
199+
115200
@doc """
116201
Deletes an existing Version resource.
117202

clients/app_engine/lib/google_api/app_engine/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AppEngine.V1 do
2020
API client metadata for GoogleApi.AppEngine.V1.
2121
"""
2222

23-
@discovery_revision "20241118"
23+
@discovery_revision "20241205"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/app_engine/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.AppEngine.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.42.0"
21+
@version "0.43.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)