Skip to content

Commit ad36644

Browse files
feat: Automated regeneration of Integrations client (#13159)
Auto-created at 2025-03-14 13:15:54 +0000 using the toys pull request generator.
1 parent 57a56fb commit ad36644

12 files changed

+392
-105
lines changed

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,6 +2351,91 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
23512351
)
23522352
end
23532353

2354+
@doc """
2355+
Searches and returns the list of integrations in the specified project.
2356+
2357+
## Parameters
2358+
2359+
* `connection` (*type:* `GoogleApi.Integrations.V1.Connection.t`) - Connection to server
2360+
* `parent` (*type:* `String.t`) - Required. Project and location from which the integrations should be listed. Format: projects/*/locations/*/resources/integrations
2361+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2362+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2363+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2364+
* `:alt` (*type:* `String.t`) - Data format for response.
2365+
* `:callback` (*type:* `String.t`) - JSONP
2366+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2367+
* `: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.
2368+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2369+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2370+
* `: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.
2371+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2372+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2373+
* `:filter` (*type:* `String.t`) - Optional. The pre-filter to be applied to the search. This should follow the expressions defined in https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata. For example, "status:ANY("ACTIVE")" will return all the resources whose status contains the "ACTIVE".
2374+
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of results to return. The service may return fewer than this value. If unspecified, at most 10 results will be returned. The maximum value is 100; values above 100 will be coerced to 100.
2375+
* `:pageToken` (*type:* `String.t`) - Optional. A page token, received from a previous `SearchIntegrations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchIntegrations` must match the call that provided the page token.
2376+
* `:query` (*type:* `String.t`) - Required. The user query
2377+
* `opts` (*type:* `keyword()`) - Call options
2378+
2379+
## Returns
2380+
2381+
* `{:ok, %GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaSearchIntegrationsResponse{}}` on success
2382+
* `{:error, info}` on failure
2383+
"""
2384+
@spec integrations_projects_locations_integrations_search(
2385+
Tesla.Env.client(),
2386+
String.t(),
2387+
keyword(),
2388+
keyword()
2389+
) ::
2390+
{:ok,
2391+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaSearchIntegrationsResponse.t()}
2392+
| {:ok, Tesla.Env.t()}
2393+
| {:ok, list()}
2394+
| {:error, any()}
2395+
def integrations_projects_locations_integrations_search(
2396+
connection,
2397+
parent,
2398+
optional_params \\ [],
2399+
opts \\ []
2400+
) do
2401+
optional_params_config = %{
2402+
:"$.xgafv" => :query,
2403+
:access_token => :query,
2404+
:alt => :query,
2405+
:callback => :query,
2406+
:fields => :query,
2407+
:key => :query,
2408+
:oauth_token => :query,
2409+
:prettyPrint => :query,
2410+
:quotaUser => :query,
2411+
:uploadType => :query,
2412+
:upload_protocol => :query,
2413+
:filter => :query,
2414+
:pageSize => :query,
2415+
:pageToken => :query,
2416+
:query => :query
2417+
}
2418+
2419+
request =
2420+
Request.new()
2421+
|> Request.method(:get)
2422+
|> Request.url("/v1/{+parent}/integrations:search", %{
2423+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
2424+
})
2425+
|> Request.add_optional_params(optional_params_config, optional_params)
2426+
|> Request.library_version(@library_version)
2427+
2428+
connection
2429+
|> Connection.execute(request)
2430+
|> Response.decode(
2431+
opts ++
2432+
[
2433+
struct:
2434+
%GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaSearchIntegrationsResponse{}
2435+
]
2436+
)
2437+
end
2438+
23542439
@doc """
23552440
Execute the integration in draft state
23562441

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

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

clients/integrations/lib/google_api/integrations/v1/model/enterprise_crm_eventbus_proto_task_execution_details.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutio
2121
2222
## Attributes
2323
24+
* `skippedOnFailure` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the task was skipped on failure. Only relevant if the task is in SKIPPED state.
2425
* `taskAttemptStats` (*type:* `list(GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats.t)`, *default:* `nil`) -
2526
* `taskExecutionState` (*type:* `String.t`, *default:* `nil`) -
2627
* `taskNumber` (*type:* `String.t`, *default:* `nil`) - Pointer to the task config it used for execution.
@@ -29,6 +30,7 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutio
2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
33+
:skippedOnFailure => boolean() | nil,
3234
:taskAttemptStats =>
3335
list(
3436
GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats.t()
@@ -38,6 +40,8 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutio
3840
:taskNumber => String.t() | nil
3941
}
4042

43+
field(:skippedOnFailure)
44+
4145
field(:taskAttemptStats,
4246
as:
4347
GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoTaskExecutionDetailsTaskAttemptStats,

0 commit comments

Comments
 (0)