Class: DataReplicaLocationModel

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

Constant Summary collapse

REPLICAID =
1
PRODUCTURI =
2
REPLICANAME =
3
REPLICADESCRIPTION =
4
CREATIONTIME =
5
LASTMODIFIEDTIME =
6
VALIDUNTILTIME =
7
REPLICALOCATIONCATEGORY =
8
REPLICAPERSISTENTTYPE =
9
STORAGERESOURCEID =
10
FILEPATH =
11
REPLICAMETADATA =
12
FIELDS =
{
  REPLICAID => {:type => ::Thrift::Types::STRING, :name => 'replicaId', :optional => true},
  PRODUCTURI => {:type => ::Thrift::Types::STRING, :name => 'productUri', :optional => true},
  REPLICANAME => {:type => ::Thrift::Types::STRING, :name => 'replicaName', :optional => true},
  REPLICADESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'replicaDescription', :optional => true},
  CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
  LASTMODIFIEDTIME => {:type => ::Thrift::Types::I64, :name => 'lastModifiedTime', :optional => true},
  VALIDUNTILTIME => {:type => ::Thrift::Types::I64, :name => 'validUntilTime', :optional => true},
  REPLICALOCATIONCATEGORY => {:type => ::Thrift::Types::I32, :name => 'replicaLocationCategory', :optional => true, :enum_class => ::ReplicaLocationCategory},
  REPLICAPERSISTENTTYPE => {:type => ::Thrift::Types::I32, :name => 'replicaPersistentType', :optional => true, :enum_class => ::ReplicaPersistentType},
  STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId', :optional => true},
  FILEPATH => {:type => ::Thrift::Types::STRING, :name => 'filePath', :optional => true},
  REPLICAMETADATA => {:type => ::Thrift::Types::MAP, :name => 'replicaMetadata', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



62
# File 'lib/replica_catalog_models_types.rb', line 62

def struct_fields; FIELDS; end

#validateObject



64
65
66
67
68
69
70
71
# File 'lib/replica_catalog_models_types.rb', line 64

def validate
  unless @replicaLocationCategory.nil? || ::ReplicaLocationCategory::VALID_VALUES.include?(@replicaLocationCategory)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field replicaLocationCategory!')
  end
  unless @replicaPersistentType.nil? || ::ReplicaPersistentType::VALID_VALUES.include?(@replicaPersistentType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field replicaPersistentType!')
  end
end