Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaFailurePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb

Overview

Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a task, all its dependent tasks will not be executed (i.e, a retry_strategy of NONE will be applied).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaFailurePolicy

Returns a new instance of GoogleCloudIntegrationsV1alphaFailurePolicy.



8098
8099
8100
# File 'lib/google/apis/integrations_v1/classes.rb', line 8098

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conditionString

Optional. The string condition that will be evaluated to determine if the task should be retried with this failure policy. Corresponds to the JSON property condition

Returns:

  • (String)


8077
8078
8079
# File 'lib/google/apis/integrations_v1/classes.rb', line 8077

def condition
  @condition
end

#interval_timeString

Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff. Corresponds to the JSON property intervalTime

Returns:

  • (String)


8084
8085
8086
# File 'lib/google/apis/integrations_v1/classes.rb', line 8084

def interval_time
  @interval_time
end

#max_retriesFixnum

Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be retried if failed. Corresponds to the JSON property maxRetries

Returns:

  • (Fixnum)


8091
8092
8093
# File 'lib/google/apis/integrations_v1/classes.rb', line 8091

def max_retries
  @max_retries
end

#retry_strategyString

Defines what happens to the task upon failure. Corresponds to the JSON property retryStrategy

Returns:

  • (String)


8096
8097
8098
# File 'lib/google/apis/integrations_v1/classes.rb', line 8096

def retry_strategy
  @retry_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8103
8104
8105
8106
8107
8108
# File 'lib/google/apis/integrations_v1/classes.rb', line 8103

def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @interval_time = args[:interval_time] if args.key?(:interval_time)
  @max_retries = args[:max_retries] if args.key?(:max_retries)
  @retry_strategy = args[:retry_strategy] if args.key?(:retry_strategy)
end