Class: Airavata::AddGridFTPDataMovementDetails_args
- Inherits:
-
Object
- Object
- Airavata::AddGridFTPDataMovementDetails_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/airavata.rb
Constant Summary collapse
- AUTHZTOKEN =
1
- PRODUCTURI =
2
- DATAMOVETYPE =
3
- PRIORITYORDER =
4
- GRIDFTPDATAMOVEMENT =
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'}, GRIDFTPDATAMOVEMENT => {:type => ::Thrift::Types::STRUCT, :name => 'gridFTPDataMovement', :class => ::GridFTPDataMovement} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11704 |
# File 'lib/airavata.rb', line 11704 def struct_fields; FIELDS; end |
#validate ⇒ Object
11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 |
# File 'lib/airavata.rb', line 11706 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 gridFTPDataMovement is unset!') unless @gridFTPDataMovement unless @dataMoveType.nil? || ::DMType::VALID_VALUES.include?(@dataMoveType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataMoveType!') end end |