Class: CadenceThrift::ListClosedWorkflowExecutionsRequest

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb

Constant Summary collapse

DOMAIN =
10
MAXIMUMPAGESIZE =
20
NEXTPAGETOKEN =
30
STARTTIMEFILTER =
40
EXECUTIONFILTER =
50
TYPEFILTER =
60
STATUSFILTER =
70
FIELDS =
{
  DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
  MAXIMUMPAGESIZE => {:type => ::Thrift::Types::I32, :name => 'maximumPageSize', :optional => true},
  NEXTPAGETOKEN => {:type => ::Thrift::Types::STRING, :name => 'nextPageToken', :binary => true, :optional => true},
  STARTTIMEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'StartTimeFilter', :class => ::CadenceThrift::StartTimeFilter, :optional => true},
  EXECUTIONFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'executionFilter', :class => ::CadenceThrift::WorkflowExecutionFilter, :optional => true},
  TYPEFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'typeFilter', :class => ::CadenceThrift::WorkflowTypeFilter, :optional => true},
  STATUSFILTER => {:type => ::Thrift::Types::I32, :name => 'statusFilter', :optional => true, :enum_class => ::CadenceThrift::WorkflowExecutionCloseStatus}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3902
# File 'lib/gen/thrift/shared_types.rb', line 3902

def struct_fields; FIELDS; end

#validateObject



3904
3905
3906
3907
3908
# File 'lib/gen/thrift/shared_types.rb', line 3904

def validate
  unless @statusFilter.nil? || ::CadenceThrift::WorkflowExecutionCloseStatus::VALID_VALUES.include?(@statusFilter)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusFilter!')
  end
end