Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoLoopMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoLoopMetadata

Returns a new instance of EnterpriseCrmEventbusProtoLoopMetadata.



1478
1479
1480
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1478

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

Instance Attribute Details

#current_iteration_countFixnum

Starting from 1, not 0. Corresponds to the JSON property currentIterationCount

Returns:

  • (Fixnum)


1457
1458
1459
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1457

def current_iteration_count
  @current_iteration_count
end

#current_iteration_detailString

Needs to be set by the loop impl class before each iteration. The abstract loop class will append the request and response to it. Eg. The foreach Loop will clean up and set it as the current iteration element at the start of each loop. The post request and response will be appended to the value once they are available. Corresponds to the JSON property currentIterationDetail

Returns:

  • (String)


1466
1467
1468
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1466

def current_iteration_detail
  @current_iteration_detail
end

#error_msgString

Add the error message when loops fail. Corresponds to the JSON property errorMsg

Returns:

  • (String)


1471
1472
1473
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1471

def error_msg
  @error_msg
end

#failure_locationString

Indicates where in the loop logic did it error out. Corresponds to the JSON property failureLocation

Returns:

  • (String)


1476
1477
1478
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1476

def failure_location
  @failure_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1483
1484
1485
1486
1487
1488
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1483

def update!(**args)
  @current_iteration_count = args[:current_iteration_count] if args.key?(:current_iteration_count)
  @current_iteration_detail = args[:current_iteration_detail] if args.key?(:current_iteration_detail)
  @error_msg = args[:error_msg] if args.key?(:error_msg)
  @failure_location = args[:failure_location] if args.key?(:failure_location)
end