Skip to content

Commit 1c0beb2

Browse files
feat: Automated regeneration of Integrations client (googleapis#12235)
Auto-created at 2024-09-28 13:12:37 +0000 using the toys pull request generator.
1 parent 7a2bd33 commit 1c0beb2

11 files changed

+388
-8
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.9"}]
14+
[{:google_api_integrations, "~> 0.10"}]
1515
end
1616
```
1717

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

Lines changed: 160 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,85 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
23492349
)
23502350
end
23512351

2352+
@doc """
2353+
Cancellation of an execution and associated sub-executions. This will not cancel an IN_PROCESS or completed(SUCCESSFUL, FAILED or CANCELLED) executions.
2354+
2355+
## Parameters
2356+
2357+
* `connection` (*type:* `GoogleApi.Integrations.V1.Connection.t`) - Connection to server
2358+
* `name` (*type:* `String.t`) - Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/products/{product}/integrations/{integration_id}/executions/{execution_id}
2359+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2360+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2361+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2362+
* `:alt` (*type:* `String.t`) - Data format for response.
2363+
* `:callback` (*type:* `String.t`) - JSONP
2364+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2365+
* `: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.
2366+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2367+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2368+
* `: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.
2369+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2370+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2371+
* `:body` (*type:* `GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest.t`) -
2372+
* `opts` (*type:* `keyword()`) - Call options
2373+
2374+
## Returns
2375+
2376+
* `{:ok, %GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse{}}` on success
2377+
* `{:error, info}` on failure
2378+
"""
2379+
@spec integrations_projects_locations_integrations_executions_cancel(
2380+
Tesla.Env.client(),
2381+
String.t(),
2382+
keyword(),
2383+
keyword()
2384+
) ::
2385+
{:ok,
2386+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse.t()}
2387+
| {:ok, Tesla.Env.t()}
2388+
| {:ok, list()}
2389+
| {:error, any()}
2390+
def integrations_projects_locations_integrations_executions_cancel(
2391+
connection,
2392+
name,
2393+
optional_params \\ [],
2394+
opts \\ []
2395+
) do
2396+
optional_params_config = %{
2397+
:"$.xgafv" => :query,
2398+
:access_token => :query,
2399+
:alt => :query,
2400+
:callback => :query,
2401+
:fields => :query,
2402+
:key => :query,
2403+
:oauth_token => :query,
2404+
:prettyPrint => :query,
2405+
:quotaUser => :query,
2406+
:uploadType => :query,
2407+
:upload_protocol => :query,
2408+
:body => :body
2409+
}
2410+
2411+
request =
2412+
Request.new()
2413+
|> Request.method(:post)
2414+
|> Request.url("/v1/{+name}:cancel", %{
2415+
"name" => URI.encode(name, &URI.char_unreserved?/1)
2416+
})
2417+
|> Request.add_optional_params(optional_params_config, optional_params)
2418+
|> Request.library_version(@library_version)
2419+
2420+
connection
2421+
|> Connection.execute(request)
2422+
|> Response.decode(
2423+
opts ++
2424+
[
2425+
struct:
2426+
%GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse{}
2427+
]
2428+
)
2429+
end
2430+
23522431
@doc """
23532432
Download the execution.
23542433
@@ -2615,6 +2694,85 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
26152694
)
26162695
end
26172696

2697+
@doc """
2698+
Re-execute an existing execution, with same request parameters and execution strategy
2699+
2700+
## Parameters
2701+
2702+
* `connection` (*type:* `GoogleApi.Integrations.V1.Connection.t`) - Connection to server
2703+
* `name` (*type:* `String.t`) - Required. The execution resource name. Format: projects/{gcp_project_id}/locations/{location}/integrations/{integration}/executions/{execution_id}
2704+
* `optional_params` (*type:* `keyword()`) - Optional parameters
2705+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
2706+
* `:access_token` (*type:* `String.t`) - OAuth access token.
2707+
* `:alt` (*type:* `String.t`) - Data format for response.
2708+
* `:callback` (*type:* `String.t`) - JSONP
2709+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2710+
* `: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.
2711+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2712+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2713+
* `: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.
2714+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2715+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2716+
* `:body` (*type:* `GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaReplayExecutionRequest.t`) -
2717+
* `opts` (*type:* `keyword()`) - Call options
2718+
2719+
## Returns
2720+
2721+
* `{:ok, %GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaReplayExecutionResponse{}}` on success
2722+
* `{:error, info}` on failure
2723+
"""
2724+
@spec integrations_projects_locations_integrations_executions_replay(
2725+
Tesla.Env.client(),
2726+
String.t(),
2727+
keyword(),
2728+
keyword()
2729+
) ::
2730+
{:ok,
2731+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaReplayExecutionResponse.t()}
2732+
| {:ok, Tesla.Env.t()}
2733+
| {:ok, list()}
2734+
| {:error, any()}
2735+
def integrations_projects_locations_integrations_executions_replay(
2736+
connection,
2737+
name,
2738+
optional_params \\ [],
2739+
opts \\ []
2740+
) do
2741+
optional_params_config = %{
2742+
:"$.xgafv" => :query,
2743+
:access_token => :query,
2744+
:alt => :query,
2745+
:callback => :query,
2746+
:fields => :query,
2747+
:key => :query,
2748+
:oauth_token => :query,
2749+
:prettyPrint => :query,
2750+
:quotaUser => :query,
2751+
:uploadType => :query,
2752+
:upload_protocol => :query,
2753+
:body => :body
2754+
}
2755+
2756+
request =
2757+
Request.new()
2758+
|> Request.method(:post)
2759+
|> Request.url("/v1/{+name}:replay", %{
2760+
"name" => URI.encode(name, &URI.char_unreserved?/1)
2761+
})
2762+
|> Request.add_optional_params(optional_params_config, optional_params)
2763+
|> Request.library_version(@library_version)
2764+
2765+
connection
2766+
|> Connection.execute(request)
2767+
|> Response.decode(
2768+
opts ++
2769+
[
2770+
struct:
2771+
%GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaReplayExecutionResponse{}
2772+
]
2773+
)
2774+
end
2775+
26182776
@doc """
26192777
* Lifts suspension for the Suspension task. Fetch corresponding suspension with provided suspension Id, resolve suspension, and set up suspension result for the Suspension Task.
26202778
@@ -3269,7 +3427,7 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
32693427
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
32703428
* `:fieldMask` (*type:* `String.t`) - The field mask which specifies the particular data to be returned.
32713429
* `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`.
3272-
* `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last_modified_time", "created_time", "snapshot_number" Ascending sort order for "name".
3430+
* `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last\\_modified\\_time", "created\\_time", and "snapshot\\_number". Ascending sort order for `name`.
32733431
* `:pageSize` (*type:* `integer()`) - The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
32743432
* `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.
32753433
* `opts` (*type:* `keyword()`) - Call options
@@ -6441,7 +6599,7 @@ defmodule GoogleApi.Integrations.V1.Api.Projects do
64416599
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
64426600
* `:fieldMask` (*type:* `String.t`) - The field mask which specifies the particular data to be returned.
64436601
* `:filter` (*type:* `String.t`) - Filter on fields of IntegrationVersion. Fields can be compared with literal values by use of ":" (containment), "=" (equality), ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less than or equal to), and "!=" (inequality) operators. Negation, conjunction, and disjunction are written using NOT, AND, and OR keywords. For example, organization_id=\\"1\\" AND state=ACTIVE AND description:"test". Filtering cannot be performed on repeated fields like `task_config`.
6444-
* `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last_modified_time", "created_time", "snapshot_number" Ascending sort order for "name".
6602+
* `:orderBy` (*type:* `String.t`) - The results would be returned in order you specified here. Currently supported sort keys are: Descending sort order for "last\\_modified\\_time", "created\\_time", and "snapshot\\_number". Ascending sort order for `name`.
64456603
* `:pageSize` (*type:* `integer()`) - The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
64466604
* `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListIntegrationVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListIntegrationVersions` must match the call that provided the page token.
64476605
* `opts` (*type:* `keyword()`) - Call options

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 "20240926"
23+
@discovery_revision "20240927"
2424

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

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmFrontendsEventbusProtoTriggerConfig do
1919
@moduledoc """
20-
Configuration detail of a trigger. Next available id: 20
20+
Configuration detail of a trigger. Next available id: 22
2121
2222
## Attributes
2323
@@ -26,8 +26,10 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmFrontendsEventbusProtoTri
2626
* `description` (*type:* `String.t`, *default:* `nil`) - User-provided description intended to give more business context about the task.
2727
* `enabledClients` (*type:* `list(String.t)`, *default:* `nil`) - Required. The list of client ids which are enabled to execute the workflow using this trigger. In other words, these clients have the workflow execution privledges for this trigger. For API trigger, the client id in the incoming request is validated against the list of enabled clients. For non-API triggers, one workflow execution is triggered on behalf of each enabled client.
2828
* `errorCatcherId` (*type:* `String.t`, *default:* `nil`) - Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task
29+
* `inputVariables` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of input variables for the api trigger.
2930
* `label` (*type:* `String.t`, *default:* `nil`) - The user created label for a particular trigger.
3031
* `nextTasksExecutionPolicy` (*type:* `String.t`, *default:* `nil`) - Dictates how next tasks will be executed.
32+
* `outputVariables` (*type:* `list(String.t)`, *default:* `nil`) - Optional. List of output variables for the api trigger.
3133
* `pauseWorkflowExecutions` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, any upcoming requests for this trigger config will be paused and the executions will be resumed later when the flag is reset. The workflow to which this trigger config belongs has to be in ACTIVE status for the executions to be paused or resumed.
3234
* `position` (*type:* `GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoCoordinate.t`, *default:* `nil`) - Optional. Informs the front-end application where to draw this trigger config on the UI.
3335
* `properties` (*type:* `map()`, *default:* `nil`) - Configurable properties of the trigger, not to be confused with workflow parameters. E.g. "name" is a property for API triggers and "subscription" is a property for Cloud Pubsub triggers.
@@ -53,8 +55,10 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmFrontendsEventbusProtoTri
5355
:description => String.t() | nil,
5456
:enabledClients => list(String.t()) | nil,
5557
:errorCatcherId => String.t() | nil,
58+
:inputVariables => list(String.t()) | nil,
5659
:label => String.t() | nil,
5760
:nextTasksExecutionPolicy => String.t() | nil,
61+
:outputVariables => list(String.t()) | nil,
5862
:pauseWorkflowExecutions => boolean() | nil,
5963
:position =>
6064
GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoCoordinate.t() | nil,
@@ -81,8 +85,10 @@ defmodule GoogleApi.Integrations.V1.Model.EnterpriseCrmFrontendsEventbusProtoTri
8185
field(:description)
8286
field(:enabledClients, type: :list)
8387
field(:errorCatcherId)
88+
field(:inputVariables, type: :list)
8489
field(:label)
8590
field(:nextTasksExecutionPolicy)
91+
field(:outputVariables, type: :list)
8692
field(:pauseWorkflowExecutions)
8793
field(:position, as: GoogleApi.Integrations.V1.Model.EnterpriseCrmEventbusProtoCoordinate)
8894
field(:properties, type: :map)
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.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do
19+
@moduledoc """
20+
Request for cancelling an execution.
21+
22+
## Attributes
23+
24+
* `cancelReason` (*type:* `String.t`, *default:* `nil`) - Optional. Reason for cancelling the execution This is provided by the client requesting the cancellation Platform will not use this field
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:cancelReason => String.t() | nil
31+
}
32+
33+
field(:cancelReason)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do
38+
def decode(value, options) do
39+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionRequest do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
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.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do
19+
@moduledoc """
20+
Response for cancelling an execution.
21+
22+
## Attributes
23+
24+
* `isCanceled` (*type:* `boolean()`, *default:* `nil`) - True if cancellation performed successfully
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:isCanceled => boolean() | nil
31+
}
32+
33+
field(:isCanceled)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do
38+
def decode(value, options) do
39+
GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Integrations.V1.Model.GoogleCloudIntegrationsV1alphaCancelExecutionResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

0 commit comments

Comments
 (0)