Class: DataMovementInterface

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

Overview

Data Movement Interfaces

dataMovementInterfaceId: The Data Movement Interface has to be previously registered and referenced here.

priorityOrder:

For resources with multiple interfaces, the priority order should be selected.
 Lower the numerical number, higher the priority

Constant Summary collapse

DATAMOVEMENTINTERFACEID =
1
DATAMOVEMENTPROTOCOL =
2
PRIORITYORDER =
3
CREATIONTIME =
4
UPDATETIME =
5
STORAGERESOURCEID =
6
FIELDS =
{
  DATAMOVEMENTINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'dataMovementInterfaceId'},
  DATAMOVEMENTPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'dataMovementProtocol', :enum_class => ::DataMovementProtocol},
  PRIORITYORDER => {:type => ::Thrift::Types::I32, :name => 'priorityOrder', :default => 0},
  CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
  UPDATETIME => {:type => ::Thrift::Types::I64, :name => 'updateTime', :optional => true},
  STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



186
# File 'lib/data_movement_models_types.rb', line 186

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


188
189
190
191
192
193
194
195
# File 'lib/data_movement_models_types.rb', line 188

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 dataMovementProtocol is unset!') unless @dataMovementProtocol
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field priorityOrder is unset!') unless @priorityOrder
  unless @dataMovementProtocol.nil? || ::DataMovementProtocol::VALID_VALUES.include?(@dataMovementProtocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field dataMovementProtocol!')
  end
end