Class: UnicoreDataMovement
- Inherits:
-
Object
- Object
- UnicoreDataMovement
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/data_movement_models_types.rb
Overview
Data Movement through UnicoreStorage
unicoreEndPointURL:
unicoreGateway End Point. The provider will query this service to fetch required service end points.
Constant Summary collapse
- DATAMOVEMENTINTERFACEID =
1
- SECURITYPROTOCOL =
2
- UNICOREENDPOINTURL =
3
- FIELDS =
{ DATAMOVEMENTINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'dataMovementInterfaceId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, SECURITYPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'securityProtocol', :enum_class => ::SecurityProtocol}, UNICOREENDPOINTURL => {:type => ::Thrift::Types::STRING, :name => 'unicoreEndPointURL'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
122 |
# File 'lib/data_movement_models_types.rb', line 122 def struct_fields; FIELDS; end |
#validate ⇒ Object
124 125 126 127 128 129 130 131 |
# File 'lib/data_movement_models_types.rb', line 124 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dataMovementInterfaceId is unset!') unless @dataMovementInterfaceId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field securityProtocol is unset!') unless @securityProtocol raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field unicoreEndPointURL is unset!') unless @unicoreEndPointURL unless @securityProtocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@securityProtocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field securityProtocol!') end end |