Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/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.



6448
6449
6450
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6448

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

Instance Attribute Details

#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)


6434
6435
6436
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6434

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)


6441
6442
6443
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6441

def max_retries
  @max_retries
end

#retry_strategyString

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

Returns:

  • (String)


6446
6447
6448
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6446

def retry_strategy
  @retry_strategy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6453
6454
6455
6456
6457
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6453

def update!(**args)
  @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