Resource
ExchangeStep
API resource representing an ExchangeWorkflow.Step for a particular Exchange.Resource name with one of these patterns:
recurringExchanges/{recurring_exchange}/exchanges/{exchange}/steps/{exchange_step}dataProviders/{data_provider}/recurringExchanges/{recurring_exchange}/exchanges/{exchange}/steps/{exchange_step}modelProviders/{model_provider}/recurringExchanges/{recurring_exchange}/exchanges/{exchange}/steps/{exchange_step}
Denormalized
date from the parent Exchange.Must be a complete date (no field can be unset/zero). This field is immutable.Current index of the step inside the serialized_exchange_workflow.This field is immutable after creation.
The party that executes this step. One of:
Resource name of the DataProvider that executes this step.Format:
dataProviders/{data_provider}. This field is immutable.Resource name of the ModelProvider that executes this step.Format:
modelProviders/{model_provider}. This field is immutable.Denormalized
exchange_workflow field from the ancestor RecurringExchange.This field is immutable.State of this ExchangeStep.Enum values:
STATE_UNSPECIFIED: Default value used if the state is omittedBLOCKED: Some predecessor ExchangeStep is not in state SUCCEEDEDREADY: All predecessor ExchangeSteps are in state SUCCEEDED and there are no associated ExchangeStepAttemptsREADY_FOR_RETRY: All predecessor ExchangeSteps are in state SUCCEEDED and there is at least one associated ExchangeStepAttempt and all associated ExchangeStepAttempts are in state FAILEDIN_PROGRESS: All predecessor ExchangeSteps are in state SUCCEEDED and an associated ExchangeStepAttempt is in state ACTIVESUCCEEDED: The step has succeeded (terminal state). This implies that an associated ExchangeStepAttempt is in state SUCCEEDEDFAILED: The step has permanently failed (terminal state). This implies that an associated ExchangeStepAttempt is in state FAILED_STEP
Methods
ClaimReadyExchangeStep
Finds the firstExchangeStep for the caller under the specified recurringExchanges collection that is ready to be worked on and claims it, creating an initial ExchangeStepAttempt for it.
This may create Exchange and ExchangeStep resources under the collection.
Resource name of the parent of the
recurringExchanges collection.This can be a DataProvider or ModelProvider resource name, or empty for global listing.If an ExchangeStep was claimed, that resource.
If an ExchangeStep was claimed, the resource name of the resulting ExchangeStepAttempt.Format:
recurringExchanges/{recurring_exchange}/exchanges/{exchange}/steps/{exchange_step}/attempts/{attempt}ListExchangeSteps
ListsExchangeStep resources.
Resource name of the parent Exchange.Format:
recurringExchanges/{recurring_exchange}/exchanges/{exchange}The wildcard ID (-) may be used in place of the Exchange ID to list across every Exchange in the ancestor RecurringExchange.The maximum number of ExchangeSteps to return. The service may return fewer than this value.
- If unspecified, at most 50 ExchangeSteps will be returned
- Maximum value is 1000; values above 1000 will be coerced to 1000
A page token received from a previous
ListExchangeSteps call. Provide this to retrieve the subsequent page.When paginating, all other parameters must match the call that provided the page token.Filter criteria. Repeated fields are treated as logical ORs, and multiple fields specified as logical ANDs.
Matches against the
exchange_date field.Matches against the
state field.Matches against the
data_provider field.Format: dataProviders/{data_provider}Matches against the
model_provider field.Format: modelProviders/{model_provider}List of ExchangeStep resources
A token that can be sent as
page_token to retrieve the next page. If omitted, there are no subsequent pages.