Skip to content

Commit 4ef6729

Browse files
feat: Automated regeneration of DeveloperConnect client (googleapis#12352)
Auto-created at 2024-10-17 13:20:40 +0000 using the toys pull request generator.
1 parent ae433d0 commit 4ef6729

File tree

8 files changed

+419
-3
lines changed

8 files changed

+419
-3
lines changed

clients/developer_connect/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_developer_connect, "~> 0.4"}]
14+
[{:google_api_developer_connect, "~> 0.5"}]
1515
end
1616
```
1717

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

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,78 @@ defmodule GoogleApi.DeveloperConnect.V1.Api.Projects do
701701
|> Response.decode(opts ++ [struct: %GoogleApi.DeveloperConnect.V1.Model.Operation{}])
702702
end
703703

704+
@doc """
705+
ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise instances for notifying events.
706+
707+
## Parameters
708+
709+
* `connection` (*type:* `GoogleApi.DeveloperConnect.V1.Connection.t`) - Connection to server
710+
* `parent` (*type:* `String.t`) - Required. Project and location where the webhook will be received. Format: `projects/*/locations/*`.
711+
* `optional_params` (*type:* `keyword()`) - Optional parameters
712+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
713+
* `:access_token` (*type:* `String.t`) - OAuth access token.
714+
* `:alt` (*type:* `String.t`) - Data format for response.
715+
* `:callback` (*type:* `String.t`) - JSONP
716+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
717+
* `: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.
718+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
719+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
720+
* `: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.
721+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
722+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
723+
* `:body` (*type:* `GoogleApi.DeveloperConnect.V1.Model.ProcessGitHubEnterpriseWebhookRequest.t`) -
724+
* `opts` (*type:* `keyword()`) - Call options
725+
726+
## Returns
727+
728+
* `{:ok, %GoogleApi.DeveloperConnect.V1.Model.Empty{}}` on success
729+
* `{:error, info}` on failure
730+
"""
731+
@spec developerconnect_projects_locations_connections_process_git_hub_enterprise_webhook(
732+
Tesla.Env.client(),
733+
String.t(),
734+
keyword(),
735+
keyword()
736+
) ::
737+
{:ok, GoogleApi.DeveloperConnect.V1.Model.Empty.t()}
738+
| {:ok, Tesla.Env.t()}
739+
| {:ok, list()}
740+
| {:error, any()}
741+
def developerconnect_projects_locations_connections_process_git_hub_enterprise_webhook(
742+
connection,
743+
parent,
744+
optional_params \\ [],
745+
opts \\ []
746+
) do
747+
optional_params_config = %{
748+
:"$.xgafv" => :query,
749+
:access_token => :query,
750+
:alt => :query,
751+
:callback => :query,
752+
:fields => :query,
753+
:key => :query,
754+
:oauth_token => :query,
755+
:prettyPrint => :query,
756+
:quotaUser => :query,
757+
:uploadType => :query,
758+
:upload_protocol => :query,
759+
:body => :body
760+
}
761+
762+
request =
763+
Request.new()
764+
|> Request.method(:post)
765+
|> Request.url("/v1/{+parent}/connections:processGitHubEnterpriseWebhook", %{
766+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
767+
})
768+
|> Request.add_optional_params(optional_params_config, optional_params)
769+
|> Request.library_version(@library_version)
770+
771+
connection
772+
|> Connection.execute(request)
773+
|> Response.decode(opts ++ [struct: %GoogleApi.DeveloperConnect.V1.Model.Empty{}])
774+
end
775+
704776
@doc """
705777
Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. All other Connections will have events forwarded to Cloud Build.
706778
@@ -1231,6 +1303,150 @@ defmodule GoogleApi.DeveloperConnect.V1.Api.Projects do
12311303
)
12321304
end
12331305

1306+
@doc """
1307+
ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events.
1308+
1309+
## Parameters
1310+
1311+
* `connection` (*type:* `GoogleApi.DeveloperConnect.V1.Connection.t`) - Connection to server
1312+
* `name` (*type:* `String.t`) - Required. The GitRepositoryLink resource where the webhook will be received. Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
1313+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1314+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1315+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1316+
* `:alt` (*type:* `String.t`) - Data format for response.
1317+
* `:callback` (*type:* `String.t`) - JSONP
1318+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1319+
* `: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.
1320+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1321+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1322+
* `: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.
1323+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1324+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1325+
* `:body` (*type:* `GoogleApi.DeveloperConnect.V1.Model.ProcessGitLabEnterpriseWebhookRequest.t`) -
1326+
* `opts` (*type:* `keyword()`) - Call options
1327+
1328+
## Returns
1329+
1330+
* `{:ok, %GoogleApi.DeveloperConnect.V1.Model.Empty{}}` on success
1331+
* `{:error, info}` on failure
1332+
"""
1333+
@spec developerconnect_projects_locations_connections_git_repository_links_process_git_lab_enterprise_webhook(
1334+
Tesla.Env.client(),
1335+
String.t(),
1336+
keyword(),
1337+
keyword()
1338+
) ::
1339+
{:ok, GoogleApi.DeveloperConnect.V1.Model.Empty.t()}
1340+
| {:ok, Tesla.Env.t()}
1341+
| {:ok, list()}
1342+
| {:error, any()}
1343+
def developerconnect_projects_locations_connections_git_repository_links_process_git_lab_enterprise_webhook(
1344+
connection,
1345+
name,
1346+
optional_params \\ [],
1347+
opts \\ []
1348+
) do
1349+
optional_params_config = %{
1350+
:"$.xgafv" => :query,
1351+
:access_token => :query,
1352+
:alt => :query,
1353+
:callback => :query,
1354+
:fields => :query,
1355+
:key => :query,
1356+
:oauth_token => :query,
1357+
:prettyPrint => :query,
1358+
:quotaUser => :query,
1359+
:uploadType => :query,
1360+
:upload_protocol => :query,
1361+
:body => :body
1362+
}
1363+
1364+
request =
1365+
Request.new()
1366+
|> Request.method(:post)
1367+
|> Request.url("/v1/{+name}:processGitLabEnterpriseWebhook", %{
1368+
"name" => URI.encode(name, &URI.char_unreserved?/1)
1369+
})
1370+
|> Request.add_optional_params(optional_params_config, optional_params)
1371+
|> Request.library_version(@library_version)
1372+
1373+
connection
1374+
|> Connection.execute(request)
1375+
|> Response.decode(opts ++ [struct: %GoogleApi.DeveloperConnect.V1.Model.Empty{}])
1376+
end
1377+
1378+
@doc """
1379+
ProcessGitLabWebhook is called by the GitLab.com for notifying events.
1380+
1381+
## Parameters
1382+
1383+
* `connection` (*type:* `GoogleApi.DeveloperConnect.V1.Connection.t`) - Connection to server
1384+
* `name` (*type:* `String.t`) - Required. The GitRepositoryLink resource where the webhook will be received. Format: `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
1385+
* `optional_params` (*type:* `keyword()`) - Optional parameters
1386+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
1387+
* `:access_token` (*type:* `String.t`) - OAuth access token.
1388+
* `:alt` (*type:* `String.t`) - Data format for response.
1389+
* `:callback` (*type:* `String.t`) - JSONP
1390+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
1391+
* `: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.
1392+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
1393+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
1394+
* `: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.
1395+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
1396+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1397+
* `:body` (*type:* `GoogleApi.DeveloperConnect.V1.Model.ProcessGitLabWebhookRequest.t`) -
1398+
* `opts` (*type:* `keyword()`) - Call options
1399+
1400+
## Returns
1401+
1402+
* `{:ok, %GoogleApi.DeveloperConnect.V1.Model.Empty{}}` on success
1403+
* `{:error, info}` on failure
1404+
"""
1405+
@spec developerconnect_projects_locations_connections_git_repository_links_process_git_lab_webhook(
1406+
Tesla.Env.client(),
1407+
String.t(),
1408+
keyword(),
1409+
keyword()
1410+
) ::
1411+
{:ok, GoogleApi.DeveloperConnect.V1.Model.Empty.t()}
1412+
| {:ok, Tesla.Env.t()}
1413+
| {:ok, list()}
1414+
| {:error, any()}
1415+
def developerconnect_projects_locations_connections_git_repository_links_process_git_lab_webhook(
1416+
connection,
1417+
name,
1418+
optional_params \\ [],
1419+
opts \\ []
1420+
) do
1421+
optional_params_config = %{
1422+
:"$.xgafv" => :query,
1423+
:access_token => :query,
1424+
:alt => :query,
1425+
:callback => :query,
1426+
:fields => :query,
1427+
:key => :query,
1428+
:oauth_token => :query,
1429+
:prettyPrint => :query,
1430+
:quotaUser => :query,
1431+
:uploadType => :query,
1432+
:upload_protocol => :query,
1433+
:body => :body
1434+
}
1435+
1436+
request =
1437+
Request.new()
1438+
|> Request.method(:post)
1439+
|> Request.url("/v1/{+name}:processGitLabWebhook", %{
1440+
"name" => URI.encode(name, &URI.char_unreserved?/1)
1441+
})
1442+
|> Request.add_optional_params(optional_params_config, optional_params)
1443+
|> Request.library_version(@library_version)
1444+
1445+
connection
1446+
|> Connection.execute(request)
1447+
|> Response.decode(opts ++ [struct: %GoogleApi.DeveloperConnect.V1.Model.Empty{}])
1448+
end
1449+
12341450
@doc """
12351451
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
12361452

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

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

23-
@discovery_revision "20240919"
23+
@discovery_revision "20241014"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.DeveloperConnect.V1.Model.HttpBody do
19+
@moduledoc """
20+
Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
21+
22+
## Attributes
23+
24+
* `contentType` (*type:* `String.t`, *default:* `nil`) - The HTTP Content-Type header value specifying the content type of the body.
25+
* `data` (*type:* `String.t`, *default:* `nil`) - The HTTP request/response body as raw binary.
26+
* `extensions` (*type:* `list(map())`, *default:* `nil`) - Application specific response metadata. Must be set in the first response for streaming APIs.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:contentType => String.t() | nil,
33+
:data => String.t() | nil,
34+
:extensions => list(map()) | nil
35+
}
36+
37+
field(:contentType)
38+
field(:data)
39+
field(:extensions, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DeveloperConnect.V1.Model.HttpBody do
43+
def decode(value, options) do
44+
GoogleApi.DeveloperConnect.V1.Model.HttpBody.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DeveloperConnect.V1.Model.HttpBody do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
Lines changed: 51 additions & 0 deletions
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.DeveloperConnect.V1.Model.ProcessGitHubEnterpriseWebhookRequest do
19+
@moduledoc """
20+
RPC request object accepted by the ProcessGitHubEnterpriseWebhook RPC method.
21+
22+
## Attributes
23+
24+
* `body` (*type:* `GoogleApi.DeveloperConnect.V1.Model.HttpBody.t`, *default:* `nil`) - Required. HTTP request body.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:body => GoogleApi.DeveloperConnect.V1.Model.HttpBody.t() | nil
31+
}
32+
33+
field(:body, as: GoogleApi.DeveloperConnect.V1.Model.HttpBody)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.DeveloperConnect.V1.Model.ProcessGitHubEnterpriseWebhookRequest do
38+
def decode(value, options) do
39+
GoogleApi.DeveloperConnect.V1.Model.ProcessGitHubEnterpriseWebhookRequest.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.DeveloperConnect.V1.Model.ProcessGitHubEnterpriseWebhookRequest do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

0 commit comments

Comments
 (0)