Skip to content

Commit 4b44169

Browse files
feat: Automated regeneration of Integrations client (#13295)
Auto-created at 2025-04-05 13:14:17 +0000 using the toys pull request generator.
1 parent cde7bf2 commit 4b44169

File tree

3 files changed

+124
-1
lines changed

3 files changed

+124
-1
lines changed

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,6 +1548,78 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
15481548
|> Response.decode(opts ++ [struct: %GoogleApi.Integrations.V1.Model.GoogleProtobufEmpty{}])
15491549
end
15501550

1551+
@doc """
1552+
Enable/Disable http call for provisioned client
1553+
1554+
## Parameters
1555+
1556+
* `connection` (*type:* `GoogleApi.Integrations.V1.Connection.t`) - Connection to server
1557+
* `parent` (*type:* `String.t`) - Required. Required: The ID of the GCP Project to be provisioned.
1558+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1559+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1560+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1561+
* `:alt` (*type:* `String.t`) - Data format for response.
1562+
* `:callback` (*type:* `String.t`) - JSONP
1563+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1564+
* `: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.
1565+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1566+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1567+
* `: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.
1568+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1569+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1570+
* `:body` (*type:* `GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaToggleHttpRequest.t`) -
1571+
* `opts` (*type:* `keyword()`) - Call options
1572+
1573+
## Returns
1574+
1575+
* `{:ok, %GoogleApi.Integrations.V1.Model.GoogleProtobufEmpty{}}` on success
1576+
* `{:error, info}` on failure
1577+
"""
1578+
@spec integrations_projects_locations_clients_toggle_http(
1579+
Tesla.Env.client(),
1580+
String.t(),
1581+
keyword(),
1582+
keyword()
1583+
) ::
1584+
{:ok, GoogleApi.Integrations.V1.Model.GoogleProtobufEmpty.t()}
1585+
| {:ok, Tesla.Env.t()}
1586+
| {:ok, list()}
1587+
| {:error, any()}
1588+
def integrations_projects_locations_clients_toggle_http(
1589+
connection,
1590+
parent,
1591+
optional_params \\ [],
1592+
opts \\ []
1593+
) do
1594+
optional_params_config = %{
1595+
:"$.xgafv" => :query,
1596+
:access_token => :query,
1597+
:alt => :query,
1598+
:callback => :query,
1599+
:fields => :query,
1600+
:key => :query,
1601+
:oauth_token => :query,
1602+
:prettyPrint => :query,
1603+
:quotaUser => :query,
1604+
:uploadType => :query,
1605+
:upload_protocol => :query,
1606+
:body => :body
1607+
}
1608+
1609+
request =
1610+
Request.new()
1611+
|> Request.method(:post)
1612+
|> Request.url("/v1/{+parent}/clients:toggleHttp", %{
1613+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
1614+
})
1615+
|> Request.add_optional_params(optional_params_config, optional_params)
1616+
|> Request.library_version(@library_version)
1617+
1618+
connection
1619+
|> Connection.execute(request)
1620+
|> Response.decode(opts ++ [struct: %GoogleApi.Integrations.V1.Model.GoogleProtobufEmpty{}])
1621+
end
1622+
15511623
@doc """
15521624
Creates a cloud function project.
15531625

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 "20250316"
23+
@discovery_revision "20250330"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.GoogleCloudIntegrationsV1alphaToggleHttpRequest do
19+
@moduledoc """
20+
Request to enable/disable http call for a provisioned client
21+
22+
## Attributes
23+
24+
* `enableHttpCall` (*type:* `boolean()`, *default:* `nil`) - Required. REQUIRED: True if http call feature should be turned on for this region
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:enableHttpCall => boolean() | nil
31+
}
32+
33+
field(:enableHttpCall)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaToggleHttpRequest do
38+
def decode(value, options) do
39+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaToggleHttpRequest.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaToggleHttpRequest do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

0 commit comments

Comments
 (0)