Class: WorkflowConnection

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

Constant Summary collapse

ID =
1
DATABLOCK =
2
FROMTYPE =
3
FROMID =
4
FROMOUTPUTNAME =
5
TOTYPE =
6
TOID =
7
TOINPUTNAME =
8
CREATEDAT =
9
UPDATEDAT =
10
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  DATABLOCK => {:type => ::Thrift::Types::STRUCT, :name => 'dataBlock', :class => ::DataBlock, :optional => true},
  FROMTYPE => {:type => ::Thrift::Types::I32, :name => 'fromType', :enum_class => ::ComponentType},
  FROMID => {:type => ::Thrift::Types::STRING, :name => 'fromId'},
  FROMOUTPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'fromOutputName'},
  TOTYPE => {:type => ::Thrift::Types::I32, :name => 'toType', :enum_class => ::ComponentType},
  TOID => {:type => ::Thrift::Types::STRING, :name => 'toId'},
  TOINPUTNAME => {:type => ::Thrift::Types::STRING, :name => 'toInputName'},
  CREATEDAT => {:type => ::Thrift::Types::I64, :name => 'createdAt', :optional => true},
  UPDATEDAT => {:type => ::Thrift::Types::I64, :name => 'updatedAt', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



192
# File 'lib/airavata_workflow_model_types.rb', line 192

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/airavata_workflow_model_types.rb', line 194

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromType is unset!') unless @fromType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromId is unset!') unless @fromId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field fromOutputName is unset!') unless @fromOutputName
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toType is unset!') unless @toType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toId is unset!') unless @toId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field toInputName is unset!') unless @toInputName
  unless @fromType.nil? || ::ComponentType::VALID_VALUES.include?(@fromType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field fromType!')
  end
  unless @toType.nil? || ::ComponentType::VALID_VALUES.include?(@toType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field toType!')
  end
end