Class: UU::ObjectStore::ObjectStoreRepository::ObjectStoreRepositoryCreate

Inherits:
UU::OS::REST::DTO
  • Object
show all
Defined in:
uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb

Overview

DTO for creation of the new object store repository.

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from UU::OS::REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (String) code

Code of the new object store repository. Code must be unique in scope of territory. Attribute is optional, defaults to system generated value.

Returns:

  • (String)


18
19
20
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb', line 18

def code
  @code
end

- (String) connection_uri

Connection URI for repository storage database. Attribute is mandatory.

Returns:

  • (String)


33
34
35
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb', line 33

def connection_uri
  @connection_uri
end

- (String) description

Description of the new object store repository. Attribute is optional, defaults to nil.

Returns:

  • (String)


22
23
24
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb', line 22

def description
  @description
end

- (Fixnum) max_size

Maximum size of the new object store repository (in megabytes). This number should correspond to physical capacity of storage database defined in connection_uri attribute. Attribute is not mandatory (defaults to value defined by server), however it should be set explicitly because server default value does not reflect physical capacity of storage.

Returns:

  • (Fixnum)


29
30
31
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb', line 29

def max_size
  @max_size
end

- (String) name

Name of the new object store repository. Attribute is mandatory.

Returns:

  • (String)


13
14
15
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_create.rb', line 13

def name
  @name
end