Skip to content

Commit c440106

Browse files
feat: Automated regeneration of AppEngine client (googleapis#12322)
Auto-created at 2024-10-13 13:16:47 +0000 using the toys pull request generator.
1 parent f5a4995 commit c440106

File tree

4 files changed

+92
-3
lines changed

4 files changed

+92
-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.40"}]
14+
[{:google_api_app_engine, "~> 0.41"}]
1515
end
1616
```
1717

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

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

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 "20240906"
23+
@discovery_revision "20241007"
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.40.0"
21+
@version "0.41.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)