Class: AiravataWorkflow

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

Constant Summary collapse

ID =
1
EXPERIMENTID =
2
DESCRIPTION =
3
APPLICATIONS =
4
HANDLERS =
5
CONNECTIONS =
6
STATUSES =
7
ERRORS =
8
CREATEDAT =
9
UPDATEDAT =
10
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  EXPERIMENTID => {:type => ::Thrift::Types::STRING, :name => 'experimentId'},
  DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
  APPLICATIONS => {:type => ::Thrift::Types::LIST, :name => 'applications', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowApplication}, :optional => true},
  HANDLERS => {:type => ::Thrift::Types::LIST, :name => 'handlers', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowHandler}, :optional => true},
  CONNECTIONS => {:type => ::Thrift::Types::LIST, :name => 'connections', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowConnection}, :optional => true},
  STATUSES => {:type => ::Thrift::Types::LIST, :name => 'statuses', :element => {:type => ::Thrift::Types::STRUCT, :class => ::WorkflowStatus}, :optional => true},
  ERRORS => {:type => ::Thrift::Types::LIST, :name => 'errors', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ErrorModel}, :optional => true},
  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



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


328
329
330
331
# File 'lib/airavata_workflow_model_types.rb', line 328

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 experimentId is unset!') unless @experimentId
end