Class: Temporalio::Client::Schedule::Update

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/schedule.rb

Overview

Result of an update callback for Temporalio::Client::ScheduleHandle#update.

Constant Summary collapse

Input =

Parameter for an update callback for Temporalio::Client::ScheduleHandle#update.

Data.define( # rubocop:disable Layout/ClassStructure
  :description
)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schedule:, search_attributes: nil) ⇒ Update

Create an update callback result.

Parameters:

  • schedule (Schedule)

    Schedule to update.

  • search_attributes (SearchAttributes, nil) (defaults to: nil)

    Search attributes to update to.



813
814
815
# File 'lib/temporalio/client/schedule.rb', line 813

def initialize(schedule:, search_attributes: nil)
  super
end

Instance Attribute Details

#descriptionDescription

Returns Current description of the schedule.

Returns:

  • (Description)

    Current description of the schedule.



821
822
823
# File 'lib/temporalio/client/schedule.rb', line 821

Input = Data.define( # rubocop:disable Layout/ClassStructure
  :description
)

#scheduleSchedule

Returns Schedule to update.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# File 'lib/temporalio/client/schedule.rb', line 808

class Update
  # Create an update callback result.
  #
  # @param schedule [Schedule] Schedule to update.
  # @param search_attributes [SearchAttributes, nil] Search attributes to update to.
  def initialize(schedule:, search_attributes: nil)
    super
  end

  # Parameter for an update callback for {ScheduleHandle.update}.
  #
  # @!attribute description
  #   @return [Description] Current description of the schedule.
  Input = Data.define( # rubocop:disable Layout/ClassStructure
    :description
  )
end

#search_attributesSearchAttributes?

Returns Search attributes to update to.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
# File 'lib/temporalio/client/schedule.rb', line 808

class Update
  # Create an update callback result.
  #
  # @param schedule [Schedule] Schedule to update.
  # @param search_attributes [SearchAttributes, nil] Search attributes to update to.
  def initialize(schedule:, search_attributes: nil)
    super
  end

  # Parameter for an update callback for {ScheduleHandle.update}.
  #
  # @!attribute description
  #   @return [Description] Current description of the schedule.
  Input = Data.define( # rubocop:disable Layout/ClassStructure
    :description
  )
end