Class: Airavata::AddSCPDataMovementDetails_args
- Inherits:
-
Object
- Object
- Airavata::AddSCPDataMovementDetails_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata.rb
Constant Summary collapse
- AUTHZTOKEN =
1
- PRODUCTURI =
2
- DATAMOVETYPE =
3
- PRIORITYORDER =
4
- SCPDATAMOVEMENT =
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'}, SCPDATAMOVEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'scpDataMovement', :class => ::SCPDataMovement} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11410 |
# File 'lib/airavata.rb', line 11410 def struct_fields; FIELDS; end |
#validate ⇒ Object
11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 |
# File 'lib/airavata.rb', line 11412 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 scpDataMovement is unset!') unless @scpDataMovement unless @dataMoveType.nil? || ::DMType::VALID_VALUES.include?(@dataMoveType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataMoveType!') end end |