diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/api/projects.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/api/projects.ex index e8b31215da..ff17f18c1a 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1/api/projects.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/api/projects.ex @@ -170,7 +170,7 @@ defmodule GoogleApi.WorkflowExecutions.V1.Api.Projects do end @doc """ - Creates a new execution using the latest revision of the given workflow. + Creates a new execution using the latest revision of the given workflow. For more information, see Execute a workflow. ## Parameters @@ -241,6 +241,78 @@ defmodule GoogleApi.WorkflowExecutions.V1.Api.Projects do |> Response.decode(opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.Execution{}]) end + @doc """ + Returns all metadata stored about an execution, excluding most data that is already accessible using other API methods. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkflowExecutions.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. Name of the execution for which data is to be exported. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse{}}` on success + * `{:error, info}` on failure + """ + @spec workflowexecutions_projects_locations_workflows_executions_export_data( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workflowexecutions_projects_locations_workflows_executions_export_data( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}:exportData", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse{}] + ) + end + @doc """ Returns an execution of the given name. @@ -332,8 +404,10 @@ defmodule GoogleApi.WorkflowExecutions.V1.Api.Projects do * `: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. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `startTime>"2023-08-01" AND state="FAILED"` + * `:orderBy` (*type:* `String.t`) - Optional. Comma-separated list of fields that specify the ordering applied to the `[Executions.ListExecutions]` results. By default the ordering is based on descending `createTime`. The following fields are supported for ordering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, and `workflowRevisionId`. For details, see AIP-132. * `:pageSize` (*type:* `integer()`) - Maximum number of executions to return per call. Max supported value depends on the selected Execution view: it's 1000 for BASIC and 100 for FULL. The default value used if the field is not specified is 100, regardless of the selected view. Values greater than the max value will be coerced down to it. - * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListExecutions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListExecutions` must match the call that provided the page token. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListExecutions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListExecutions` must match the call that provided the page token. Note that pagination is applied to dynamic data. The list of executions returned can change between page requests. * `:view` (*type:* `String.t`) - Optional. A view defining which fields should be filled in the returned executions. The API will default to the BASIC view. * `opts` (*type:* `keyword()`) - Call options @@ -370,6 +444,8 @@ defmodule GoogleApi.WorkflowExecutions.V1.Api.Projects do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :filter => :query, + :orderBy => :query, :pageSize => :query, :pageToken => :query, :view => :query @@ -390,4 +466,232 @@ defmodule GoogleApi.WorkflowExecutions.V1.Api.Projects do opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.ListExecutionsResponse{}] ) end + + @doc """ + Returns a list of active callbacks that belong to the execution with the given name. The returned callbacks are ordered by callback ID. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkflowExecutions.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Name of the execution for which the callbacks should be listed. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:pageSize` (*type:* `integer()`) - Maximum number of callbacks to return per call. The default value is 100 and is also the maximum value. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListCallbacks` call. Provide this to retrieve the subsequent page. Note that pagination is applied to dynamic data. The list of callbacks returned can change between page requests if callbacks are created or deleted. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse{}}` on success + * `{:error, info}` on failure + """ + @spec workflowexecutions_projects_locations_workflows_executions_callbacks_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workflowexecutions_projects_locations_workflows_executions_callbacks_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/callbacks", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse{}] + ) + end + + @doc """ + Gets a step entry. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkflowExecutions.V1.Connection.t`) - Connection to server + * `name` (*type:* `String.t`) - Required. The name of the step entry to retrieve. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/{step_entry} + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkflowExecutions.V1.Model.StepEntry{}}` on success + * `{:error, info}` on failure + """ + @spec workflowexecutions_projects_locations_workflows_executions_step_entries_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkflowExecutions.V1.Model.StepEntry.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workflowexecutions_projects_locations_workflows_executions_step_entries_get( + connection, + name, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+name}", %{ + "name" => URI.encode(name, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.StepEntry{}]) + end + + @doc """ + Lists step entries for the corresponding workflow execution. Returned entries are ordered by their create_time. + + ## Parameters + + * `connection` (*type:* `GoogleApi.WorkflowExecutions.V1.Connection.t`) - Connection to server + * `parent` (*type:* `String.t`) - Required. Name of the workflow execution to list entries for. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/ + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `: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. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `: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. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:filter` (*type:* `String.t`) - Optional. Filters applied to the `[StepEntries.ListStepEntries]` results. The following fields are supported for filtering: `entryId`, `createTime`, `updateTime`, `routine`, `step`, `stepType`, `state`. For details, see AIP-160. For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"` + * `:orderBy` (*type:* `String.t`) - Optional. Comma-separated list of fields that specify the ordering applied to the `[StepEntries.ListStepEntries]` results. By default the ordering is based on ascending `entryId`. The following fields are supported for ordering: `entryId`, `createTime`, `updateTime`, `routine`, `step`, `stepType`, `state`. For details, see AIP-132. + * `:pageSize` (*type:* `integer()`) - Optional. Number of step entries to return per call. The default max is 1000. + * `:pageToken` (*type:* `String.t`) - Optional. A page token, received from a previous `ListStepEntries` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListStepEntries` must match the call that provided the page token. + * `:skip` (*type:* `integer()`) - Optional. The number of step entries to skip. It can be used with or without a pageToken. If used with a pageToken, then it indicates the number of step entries to skip starting from the requested page. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec workflowexecutions_projects_locations_workflows_executions_step_entries_list( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def workflowexecutions_projects_locations_workflows_executions_step_entries_list( + connection, + parent, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :filter => :query, + :orderBy => :query, + :pageSize => :query, + :pageToken => :query, + :skip => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/v1/{+parent}/stepEntries", %{ + "parent" => URI.encode(parent, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse{}] + ) + end end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/metadata.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/metadata.ex index fb8eebe634..f08de36419 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1/metadata.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.WorkflowExecutions.V1 do API client metadata for GoogleApi.WorkflowExecutions.V1. """ - @discovery_revision "20221020" + @discovery_revision "20240227" def discovery_revision(), do: @discovery_revision end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/callback.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/callback.ex new file mode 100644 index 0000000000..db8ed1057c --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/callback.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.Callback do + @moduledoc """ + An instance of a Callback created by an execution. + + ## Attributes + + * `availablePayloads` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The payloads received by the callback that have not been processed by a waiting execution step. + * `method` (*type:* `String.t`, *default:* `nil`) - Output only. The method accepted by the callback. For example: GET, POST, PUT. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the callback. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/callback/{callback} + * `waiters` (*type:* `String.t`, *default:* `nil`) - Output only. Number of execution steps waiting on this callback. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :availablePayloads => list(String.t()) | nil, + :method => String.t() | nil, + :name => String.t() | nil, + :waiters => String.t() | nil + } + + field(:availablePayloads, type: :list) + field(:method) + field(:name) + field(:waiters) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.Callback do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.Callback.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.Callback do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/exception.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/exception.ex new file mode 100644 index 0000000000..18edc63d3a --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/exception.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.Exception do + @moduledoc """ + Exception describes why the step entry failed. + + ## Attributes + + * `payload` (*type:* `String.t`, *default:* `nil`) - Error message represented as a JSON string. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :payload => String.t() | nil + } + + field(:payload) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.Exception do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.Exception.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.Exception do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/execution.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/execution.ex index 6e2eea81af..ca0b768ee5 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/execution.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/execution.ex @@ -23,12 +23,17 @@ defmodule GoogleApi.WorkflowExecutions.V1.Model.Execution do * `argument` (*type:* `String.t`, *default:* `nil`) - Input parameters of the execution represented as a JSON string. The size limit is 32KB. *Note*: If you are using the REST API directly to run your workflow, you must escape any JSON string value of `argument`. Example: `'{"argument":"{\\"firstName\\":\\"FIRST\\",\\"lastName\\":\\"LAST\\"}"}'` * `callLogLevel` (*type:* `String.t`, *default:* `nil`) - The call logging level associated to this execution. + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Marks the creation of the execution. + * `disableConcurrencyQuotaOverflowBuffering` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, the execution will not be backlogged when the concurrency quota is exhausted. The backlog execution starts when the concurrency quota becomes available. + * `duration` (*type:* `String.t`, *default:* `nil`) - Output only. Measures the duration of the execution. * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Marks the end of execution, successful or not. * `error` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.Error.t`, *default:* `nil`) - Output only. The error which caused the execution to finish prematurely. The value is only present if the execution's state is `FAILED` or `CANCELLED`. + * `labels` (*type:* `map()`, *default:* `nil`) - Labels associated with this execution. Labels can contain at most 64 entries. Keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, and dashes. Label keys must start with a letter. International characters are allowed. By default, labels are inherited from the workflow but are overridden by any labels associated with the execution. * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of the execution. Format: projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} * `result` (*type:* `String.t`, *default:* `nil`) - Output only. Output of the execution represented as a JSON string. The value can only be present if the execution's state is `SUCCEEDED`. * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Marks the beginning of execution. * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of the execution. + * `stateError` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.StateError.t`, *default:* `nil`) - Output only. Error regarding the state of the Execution resource. For example, this field will have error details if the execution data is unavailable due to revoked KMS key permissions. * `status` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.Status.t`, *default:* `nil`) - Output only. Status tracks the current steps and progress data of this execution. * `workflowRevisionId` (*type:* `String.t`, *default:* `nil`) - Output only. Revision of the workflow this execution is using. """ @@ -38,24 +43,34 @@ defmodule GoogleApi.WorkflowExecutions.V1.Model.Execution do @type t :: %__MODULE__{ :argument => String.t() | nil, :callLogLevel => String.t() | nil, + :createTime => DateTime.t() | nil, + :disableConcurrencyQuotaOverflowBuffering => boolean() | nil, + :duration => String.t() | nil, :endTime => DateTime.t() | nil, :error => GoogleApi.WorkflowExecutions.V1.Model.Error.t() | nil, + :labels => map() | nil, :name => String.t() | nil, :result => String.t() | nil, :startTime => DateTime.t() | nil, :state => String.t() | nil, + :stateError => GoogleApi.WorkflowExecutions.V1.Model.StateError.t() | nil, :status => GoogleApi.WorkflowExecutions.V1.Model.Status.t() | nil, :workflowRevisionId => String.t() | nil } field(:argument) field(:callLogLevel) + field(:createTime, as: DateTime) + field(:disableConcurrencyQuotaOverflowBuffering) + field(:duration) field(:endTime, as: DateTime) field(:error, as: GoogleApi.WorkflowExecutions.V1.Model.Error) + field(:labels, type: :map) field(:name) field(:result) field(:startTime, as: DateTime) field(:state) + field(:stateError, as: GoogleApi.WorkflowExecutions.V1.Model.StateError) field(:status, as: GoogleApi.WorkflowExecutions.V1.Model.Status) field(:workflowRevisionId) end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/export_data_response.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/export_data_response.ex new file mode 100644 index 0000000000..340c0ec835 --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/export_data_response.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse do + @moduledoc """ + Response for the ExportData method. + + ## Attributes + + * `data` (*type:* `String.t`, *default:* `nil`) - The JSON string with customer data and metadata for an execution with the given name + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :data => String.t() | nil + } + + field(:data) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.ExportDataResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_callbacks_response.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_callbacks_response.ex new file mode 100644 index 0000000000..dc799d9659 --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_callbacks_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse do + @moduledoc """ + RPC response object for the ListCallbacks method. + + ## Attributes + + * `callbacks` (*type:* `list(GoogleApi.WorkflowExecutions.V1.Model.Callback.t)`, *default:* `nil`) - The callbacks which match the request. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :callbacks => list(GoogleApi.WorkflowExecutions.V1.Model.Callback.t()) | nil, + :nextPageToken => String.t() | nil + } + + field(:callbacks, as: GoogleApi.WorkflowExecutions.V1.Model.Callback, type: :list) + field(:nextPageToken) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.ListCallbacksResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_step_entries_response.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_step_entries_response.ex new file mode 100644 index 0000000000..d60eeee8e4 --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/list_step_entries_response.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse do + @moduledoc """ + Response message for ExecutionHistory.ListStepEntries. + + ## Attributes + + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token to retrieve next page of results. Pass this value in the ListStepEntriesRequest.page_token field in the subsequent call to `ListStepEntries` method to retrieve the next page of results. + * `stepEntries` (*type:* `list(GoogleApi.WorkflowExecutions.V1.Model.StepEntry.t)`, *default:* `nil`) - The list of entries. + * `totalSize` (*type:* `integer()`, *default:* `nil`) - Indicates the total number of StepEntries that matched the request filter. For running executions, this number shows the number of StepEntries that are executed thus far. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :nextPageToken => String.t() | nil, + :stepEntries => list(GoogleApi.WorkflowExecutions.V1.Model.StepEntry.t()) | nil, + :totalSize => integer() | nil + } + + field(:nextPageToken) + field(:stepEntries, as: GoogleApi.WorkflowExecutions.V1.Model.StepEntry, type: :list) + field(:totalSize) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.ListStepEntriesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/navigation_info.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/navigation_info.ex new file mode 100644 index 0000000000..56de604d8b --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/navigation_info.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo do + @moduledoc """ + NavigationInfo describes what steps if any come before or after this step, or what steps are parents or children of this step. + + ## Attributes + + * `children` (*type:* `list(String.t)`, *default:* `nil`) - Step entries that can be reached by "stepping into" e.g. a subworkflow call. + * `next` (*type:* `String.t`, *default:* `nil`) - The index of the next step in the current workflow, if any. + * `parent` (*type:* `String.t`, *default:* `nil`) - The step entry, if any, that can be reached by "stepping out" of the current workflow being executed. + * `previous` (*type:* `String.t`, *default:* `nil`) - The index of the previous step in the current workflow, if any. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :children => list(String.t()) | nil, + :next => String.t() | nil, + :parent => String.t() | nil, + :previous => String.t() | nil + } + + field(:children, type: :list) + field(:next) + field(:parent) + field(:previous) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/pubsub_message.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/pubsub_message.ex index 6839354dff..0fb7fa9f3e 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/pubsub_message.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/pubsub_message.ex @@ -21,10 +21,10 @@ defmodule GoogleApi.WorkflowExecutions.V1.Model.PubsubMessage do ## Attributes - * `attributes` (*type:* `map()`, *default:* `nil`) - Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription. - * `data` (*type:* `String.t`, *default:* `nil`) - The message data field. If this field is empty, the message must contain at least one attribute. + * `attributes` (*type:* `map()`, *default:* `nil`) - Optional. Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription. + * `data` (*type:* `String.t`, *default:* `nil`) - Optional. The message data field. If this field is empty, the message must contain at least one attribute. * `messageId` (*type:* `String.t`, *default:* `nil`) - ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call. - * `orderingKey` (*type:* `String.t`, *default:* `nil`) - If non-empty, identifies related messages for which publish order should be respected. If a `Subscription` has `enable_message_ordering` set to `true`, messages published with the same non-empty `ordering_key` value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` must specify the same `ordering_key` value. For more information, see [ordering messages](https://cloud.google.com/pubsub/docs/ordering). + * `orderingKey` (*type:* `String.t`, *default:* `nil`) - Optional. If non-empty, identifies related messages for which publish order should be respected. If a `Subscription` has `enable_message_ordering` set to `true`, messages published with the same non-empty `ordering_key` value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All `PubsubMessage`s published in a given `PublishRequest` must specify the same `ordering_key` value. For more information, see [ordering messages](https://cloud.google.com/pubsub/docs/ordering). * `publishTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call. """ diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/state_error.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/state_error.ex new file mode 100644 index 0000000000..873476566e --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/state_error.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.StateError do + @moduledoc """ + Describes an error related to the current state of the Execution resource. + + ## Attributes + + * `details` (*type:* `String.t`, *default:* `nil`) - Provides specifics about the error. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of this state error. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :details => String.t() | nil, + :type => String.t() | nil + } + + field(:details) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.StateError do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.StateError.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.StateError do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry.ex new file mode 100644 index 0000000000..acd4ec608f --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry.ex @@ -0,0 +1,76 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.StepEntry do + @moduledoc """ + An StepEntry contains debugging information for a step transition in a workflow execution. + + ## Attributes + + * `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The creation time of the step entry. + * `entryId` (*type:* `String.t`, *default:* `nil`) - Output only. The numeric ID of this step entry, used for navigation. + * `exception` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.Exception.t`, *default:* `nil`) - Output only. The exception thrown by the step entry. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. The full resource name of the step entry. Each step entry has a unique entry ID, which is a monotonically increasing counter. Step entry names have the format: `projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}/stepEntries/{step_entry}`. + * `navigationInfo` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo.t`, *default:* `nil`) - Output only. The NavigationInfo associated to this step. + * `routine` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the routine this step entry belongs to. A routine name is the subworkflow name defined in the YAML source code. The top level routine name is `main`. + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the step entry. + * `step` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the step this step entry belongs to. + * `stepEntryMetadata` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata.t`, *default:* `nil`) - Output only. The StepEntryMetadata associated to this step. + * `stepType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the step this step entry belongs to. + * `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The most recently updated time of the step entry. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :createTime => DateTime.t() | nil, + :entryId => String.t() | nil, + :exception => GoogleApi.WorkflowExecutions.V1.Model.Exception.t() | nil, + :name => String.t() | nil, + :navigationInfo => GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo.t() | nil, + :routine => String.t() | nil, + :state => String.t() | nil, + :step => String.t() | nil, + :stepEntryMetadata => GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata.t() | nil, + :stepType => String.t() | nil, + :updateTime => DateTime.t() | nil + } + + field(:createTime, as: DateTime) + field(:entryId) + field(:exception, as: GoogleApi.WorkflowExecutions.V1.Model.Exception) + field(:name) + field(:navigationInfo, as: GoogleApi.WorkflowExecutions.V1.Model.NavigationInfo) + field(:routine) + field(:state) + field(:step) + field(:stepEntryMetadata, as: GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata) + field(:stepType) + field(:updateTime, as: DateTime) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.StepEntry do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.StepEntry.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.StepEntry do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry_metadata.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry_metadata.ex new file mode 100644 index 0000000000..f51e2e8b5f --- /dev/null +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/step_entry_metadata.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata do + @moduledoc """ + StepEntryMetadata contains metadata information about this step. + + ## Attributes + + * `progressNumber` (*type:* `String.t`, *default:* `nil`) - Progress number represents the current state of the current progress. eg: A step entry represents the 4th iteration in a progress of PROGRESS_TYPE_FOR. + * `progressType` (*type:* `String.t`, *default:* `nil`) - Progress type of this step entry. + * `threadId` (*type:* `String.t`, *default:* `nil`) - Child thread id that this step entry belongs to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :progressNumber => String.t() | nil, + :progressType => String.t() | nil, + :threadId => String.t() | nil + } + + field(:progressNumber) + field(:progressType) + field(:threadId) +end + +defimpl Poison.Decoder, for: GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata do + def decode(value, options) do + GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.WorkflowExecutions.V1.Model.StepEntryMetadata do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/trigger_pubsub_execution_request.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/trigger_pubsub_execution_request.ex index 20bf0e55ae..92e8293d9d 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/trigger_pubsub_execution_request.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1/model/trigger_pubsub_execution_request.ex @@ -22,6 +22,7 @@ defmodule GoogleApi.WorkflowExecutions.V1.Model.TriggerPubsubExecutionRequest do ## Attributes * `GCPCloudEventsMode` (*type:* `String.t`, *default:* `nil`) - Required. LINT: LEGACY_NAMES The query parameter value for __GCP_CloudEventsMode, set by the Eventarc service when configuring triggers. + * `deliveryAttempt` (*type:* `integer()`, *default:* `nil`) - The number of attempts that have been made to deliver this message. This is set by Pub/Sub for subscriptions that have the "dead letter" feature enabled, and hence provided here for compatibility, but is ignored by Workflows. * `message` (*type:* `GoogleApi.WorkflowExecutions.V1.Model.PubsubMessage.t`, *default:* `nil`) - Required. The message of the Pub/Sub push notification. * `subscription` (*type:* `String.t`, *default:* `nil`) - Required. The subscription of the Pub/Sub push notification. Format: projects/{project}/subscriptions/{sub} """ @@ -30,11 +31,13 @@ defmodule GoogleApi.WorkflowExecutions.V1.Model.TriggerPubsubExecutionRequest do @type t :: %__MODULE__{ :GCPCloudEventsMode => String.t() | nil, + :deliveryAttempt => integer() | nil, :message => GoogleApi.WorkflowExecutions.V1.Model.PubsubMessage.t() | nil, :subscription => String.t() | nil } field(:GCPCloudEventsMode) + field(:deliveryAttempt) field(:message, as: GoogleApi.WorkflowExecutions.V1.Model.PubsubMessage) field(:subscription) end diff --git a/clients/workflow_executions/lib/google_api/workflow_executions/v1beta/metadata.ex b/clients/workflow_executions/lib/google_api/workflow_executions/v1beta/metadata.ex index 20b41e0b99..8edc14bebb 100644 --- a/clients/workflow_executions/lib/google_api/workflow_executions/v1beta/metadata.ex +++ b/clients/workflow_executions/lib/google_api/workflow_executions/v1beta/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.WorkflowExecutions.V1beta do API client metadata for GoogleApi.WorkflowExecutions.V1beta. """ - @discovery_revision "20221020" + @discovery_revision "20240227" def discovery_revision(), do: @discovery_revision end