Skip to content

Commit 5201a5f

Browse files
feat: Automated regeneration of AppEngine client (#13144)
Auto-created at 2025-03-13 13:16:08 +0000 using the toys pull request generator.
1 parent c480e11 commit 5201a5f

File tree

2 files changed

+86
-1
lines changed

2 files changed

+86
-1
lines changed

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
@@ -25,6 +25,91 @@ defmodule GoogleApi.AppEngine.V1.Api.Projects do
2525

2626
@library_version Mix.Project.config() |> Keyword.get(:version, "")
2727

28+
@doc """
29+
Updates the specified Application resource. You can update the following fields: auth_domain - Google authentication domain for controlling user access to the application. default_cookie_expiration - Cookie expiration policy for the application. iap - Identity-Aware Proxy properties for the application.
30+
31+
## Parameters
32+
33+
* `connection` (*type:* `GoogleApi.AppEngine.V1.Connection.t`) - Connection to server
34+
* `projects_id` (*type:* `String.t`) - Part of `name`. Name of the Application resource to update. Example: apps/myapp.
35+
* `locations_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
36+
* `applications_id` (*type:* `String.t`) - Part of `name`. See documentation of `projectsId`.
37+
* `optional_params` (*type:* `keyword()`) - Optional parameters
38+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
39+
* `:access_token` (*type:* `String.t`) - OAuth access token.
40+
* `:alt` (*type:* `String.t`) - Data format for response.
41+
* `:callback` (*type:* `String.t`) - JSONP
42+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
43+
* `: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.
44+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
45+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
46+
* `: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.
47+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
48+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
49+
* `:updateMask` (*type:* `String.t`) - Required. Standard field mask for the set of fields to be updated.
50+
* `:body` (*type:* `GoogleApi.AppEngine.V1.Model.Application.t`) -
51+
* `opts` (*type:* `keyword()`) - Call options
52+
53+
## Returns
54+
55+
* `{:ok, %GoogleApi.AppEngine.V1.Model.Operation{}}` on success
56+
* `{:error, info}` on failure
57+
"""
58+
@spec appengine_projects_locations_applications_patch(
59+
Tesla.Env.client(),
60+
String.t(),
61+
String.t(),
62+
String.t(),
63+
keyword(),
64+
keyword()
65+
) ::
66+
{:ok, GoogleApi.AppEngine.V1.Model.Operation.t()}
67+
| {:ok, Tesla.Env.t()}
68+
| {:ok, list()}
69+
| {:error, any()}
70+
def appengine_projects_locations_applications_patch(
71+
connection,
72+
projects_id,
73+
locations_id,
74+
applications_id,
75+
optional_params \\ [],
76+
opts \\ []
77+
) do
78+
optional_params_config = %{
79+
:"$.xgafv" => :query,
80+
:access_token => :query,
81+
:alt => :query,
82+
:callback => :query,
83+
:fields => :query,
84+
:key => :query,
85+
:oauth_token => :query,
86+
:prettyPrint => :query,
87+
:quotaUser => :query,
88+
:uploadType => :query,
89+
:upload_protocol => :query,
90+
:updateMask => :query,
91+
:body => :body
92+
}
93+
94+
request =
95+
Request.new()
96+
|> Request.method(:patch)
97+
|> Request.url(
98+
"/v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}",
99+
%{
100+
"projectsId" => URI.encode(projects_id, &URI.char_unreserved?/1),
101+
"locationsId" => URI.encode(locations_id, &URI.char_unreserved?/1),
102+
"applicationsId" => URI.encode(applications_id, &(URI.char_unreserved?(&1) || &1 == ?/))
103+
}
104+
)
105+
|> Request.add_optional_params(optional_params_config, optional_params)
106+
|> Request.library_version(@library_version)
107+
108+
connection
109+
|> Connection.execute(request)
110+
|> Response.decode(opts ++ [struct: %GoogleApi.AppEngine.V1.Model.Operation{}])
111+
end
112+
28113
@doc """
29114
Lists all domains the user is authorized to administer.
30115

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 "20250223"
23+
@discovery_revision "20250310"
2424

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

0 commit comments

Comments
 (0)