Class: Airavata::AddUnicoreDataMovementDetails_args
- Inherits:
-
Object
- Object
- Airavata::AddUnicoreDataMovementDetails_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata.rb
Constant Summary collapse
- AUTHZTOKEN =
1
- PRODUCTURI =
2
- DATAMOVETYPE =
3
- PRIORITYORDER =
4
- UNICOREDATAMOVEMENT =
5
- FIELDS =
{ AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken}, PRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'productUri'}, DATAMOVETYPE => {:type => ::Thrift::Types::I32, :name => 'dataMoveType', :enum_class => ::DMType}, PRIORITYORDER => {:type => ::Thrift::Types::I32, :name => 'priorityOrder'}, UNICOREDATAMOVEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'unicoreDataMovement', :class => ::UnicoreDataMovement} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11557 |
# File 'lib/airavata.rb', line 11557 def struct_fields; FIELDS; end |
#validate ⇒ Object
11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 |
# File 'lib/airavata.rb', line 11559 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authzToken is unset!') unless @authzToken raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field productUri is unset!') unless @productUri raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dataMoveType is unset!') unless @dataMoveType raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field priorityOrder is unset!') unless @priorityOrder raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field unicoreDataMovement is unset!') unless @unicoreDataMovement unless @dataMoveType.nil? || ::DMType::VALID_VALUES.include?(@dataMoveType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataMoveType!') end end |