Skip to content

Commit 9fcc738

Browse files
feat: Automated regeneration of Integrations client (googleapis#12836)
Auto-created at 2025-01-17 13:14:45 +0000 using the toys pull request generator.
1 parent 814c0c4 commit 9fcc738

File tree

6 files changed

+186
-3
lines changed

6 files changed

+186
-3
lines changed

clients/integrations/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_integrations, "~> 0.14"}]
14+
[{:google_api_integrations, "~> 0.15"}]
1515
end
1616
```
1717

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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4108,6 +4108,85 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
41084108
)
41094109
end
41104110

4111+
@doc """
4112+
Executes all test cases in an integration version.
4113+
4114+
## Parameters
4115+
4116+
* `connection` (*type:* `GoogleApi.Integrations.V1.Connection.t`) - Connection to server
4117+
* `parent` (*type:* `String.t`) - Required. The parent resource whose test cases are executed. Format: projects/{project}/locations/{location}/integrations/{integration}/versions/{integration_version}
4118+
* `optional_params` (*type:* `keyword()`) - Optional parameters
4119+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4120+
* `:access_token` (*type:* `String.t`) - OAuth access token.
4121+
* `:alt` (*type:* `String.t`) - Data format for response.
4122+
* `:callback` (*type:* `String.t`) - JSONP
4123+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
4124+
* `: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.
4125+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
4126+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
4127+
* `: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.
4128+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
4129+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
4130+
* `:body` (*type:* `GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest.t`) -
4131+
* `opts` (*type:* `keyword()`) - Call options
4132+
4133+
## Returns
4134+
4135+
* `{:ok, %GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse{}}` on success
4136+
* `{:error, info}` on failure
4137+
"""
4138+
@spec integrations_projects_locations_integrations_versions_test_cases_execute(
4139+
Tesla.Env.client(),
4140+
String.t(),
4141+
keyword(),
4142+
keyword()
4143+
) ::
4144+
{:ok,
4145+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse.t()}
4146+
| {:ok, Tesla.Env.t()}
4147+
| {:ok, list()}
4148+
| {:error, any()}
4149+
def integrations_projects_locations_integrations_versions_test_cases_execute(
4150+
connection,
4151+
parent,
4152+
optional_params \\ [],
4153+
opts \\ []
4154+
) do
4155+
optional_params_config = %{
4156+
:"$.xgafv" => :query,
4157+
:access_token => :query,
4158+
:alt => :query,
4159+
:callback => :query,
4160+
:fields => :query,
4161+
:key => :query,
4162+
:oauth_token => :query,
4163+
:prettyPrint => :query,
4164+
:quotaUser => :query,
4165+
:uploadType => :query,
4166+
:upload_protocol => :query,
4167+
:body => :body
4168+
}
4169+
4170+
request =
4171+
Request.new()
4172+
|> Request.method(:post)
4173+
|> Request.url("/v1/{+parent}/testCases:execute", %{
4174+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
4175+
})
4176+
|> Request.add_optional_params(optional_params_config, optional_params)
4177+
|> Request.library_version(@library_version)
4178+
4179+
connection
4180+
|> Connection.execute(request)
4181+
|> Response.decode(
4182+
opts ++
4183+
[
4184+
struct:
4185+
%GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse{}
4186+
]
4187+
)
4188+
end
4189+
41114190
@doc """
41124191
Executes functional test
41134192

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

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

23-
@discovery_revision "20241209"
23+
@discovery_revision "20250113"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest do
19+
@moduledoc """
20+
Request for ExecuteTestCases.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest do
33+
def decode(value, options) do
34+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest.decode(
35+
value,
36+
options
37+
)
38+
end
39+
end
40+
41+
defimpl Poison.Encoder,
42+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse do
19+
@moduledoc """
20+
Response for ExecuteTestCases.
21+
22+
## Attributes
23+
24+
* `executeTestCaseResponses` (*type:* `list(GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse.t)`, *default:* `nil`) - Results of each execution of test cases in an integration version.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:executeTestCaseResponses =>
31+
list(
32+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse.t()
33+
)
34+
| nil
35+
}
36+
37+
field(:executeTestCaseResponses,
38+
as: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse,
39+
type: :list
40+
)
41+
end
42+
43+
defimpl Poison.Decoder,
44+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse do
45+
def decode(value, options) do
46+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse.decode(
47+
value,
48+
options
49+
)
50+
end
51+
end
52+
53+
defimpl Poison.Encoder,
54+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end

clients/integrations/mix.exs

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

21-
@version "0.14.0"
21+
@version "0.15.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)