Skip to content

Commit

Permalink
feat: Automated regeneration of WorkflowExecutions client (#10884)
Browse files Browse the repository at this point in the history
Auto-created at 2024-03-12 01:32:25 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Mar 12, 2024
1 parent 8e61f63 commit d401f70
Show file tree
Hide file tree
Showing 15 changed files with 809 additions and 7 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand Down
Loading

0 comments on commit d401f70

Please sign in to comment.