Class: StorageResourceDescription
- Inherits:
-
Object
- Object
- StorageResourceDescription
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/storage_resource_model_types.rb
Overview
Storage Resource Description
storageResourceId: Airavata Internal Unique Identifier to distinguish Compute Resource.
hostName:
Fully Qualified Host Name.
storageResourceDescription:
A user friendly description of the resource.
DataMovementProtocol:
Option to specify a prefered data movement mechanism of the available options.
Constant Summary collapse
- STORAGERESOURCEID =
1
- HOSTNAME =
2
- STORAGERESOURCEDESCRIPTION =
3
- ENABLED =
4
- DATAMOVEMENTINTERFACES =
5
- CREATIONTIME =
6
- UPDATETIME =
7
- FIELDS =
{ STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, HOSTNAME => {:type => ::Thrift::Types::STRING, :name => 'hostName'}, STORAGERESOURCEDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'storageResourceDescription', :optional => true}, ENABLED => {:type => ::Thrift::Types::BOOL, :name => 'enabled', :optional => true}, DATAMOVEMENTINTERFACES => {:type => ::Thrift::Types::LIST, :name => 'dataMovementInterfaces', :element => {:type => ::Thrift::Types::STRUCT, :class => ::DataMovementInterface}, :optional => true}, CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true}, UPDATETIME => {:type => ::Thrift::Types::I64, :name => 'updateTime', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
47 |
# File 'lib/storage_resource_model_types.rb', line 47 def struct_fields; FIELDS; end |
#validate ⇒ Object
49 50 51 52 |
# File 'lib/storage_resource_model_types.rb', line 49 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field storageResourceId is unset!') unless @storageResourceId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field hostName is unset!') unless @hostName end |