Class: UU::ObjectStore::ObjectStoreRepository::ObjectStoreRepositorySetAttributes
- Inherits:
-
UU::OS::REST::DTO
- Object
- UU::OS::REST::DTO
- UU::ObjectStore::ObjectStoreRepository::ObjectStoreRepositorySetAttributes
- Defined in:
- uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb
Overview
DTO for updating of the existing object store repository.
Instance Attribute Summary (collapse)
-
- (String) code
New code of the object store repository.
-
- (String) connection_uri
New connection URI for repository storage database.
-
- (String) description
New description of the object store repository.
-
- (Fixnum) max_size
Maximum size of the new object store repository (in megabytes).
-
- (String) name
New name of the object store repository.
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
New code of the object store repository. Code must be unique in scope of territory. Attribute is optional. If not set, code is not changed.
18 19 20 |
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb', line 18 def code @code end |
- (String) connection_uri
New connection URI for repository storage database. Attribute is optional. If not set, description is not changed. It is important to note, that changing of connection URI (unless the new URI was provided by system administrators as result of physical data migration) causes all object stores created in this repository before update to be inaccessible!
38 39 40 |
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb', line 38 def connection_uri @connection_uri end |
- (String) description
New description of the object store repository. Attribute is optional. If not set, description is not changed.
23 24 25 |
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb', line 23 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. If requested maximum size is smaller, than size allocated by all existing object stores within this repository, update of repository fails. Attribute is optional. If not set, maximum size is not changed.
31 32 33 |
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb', line 31 def max_size @max_size end |
- (String) name
New name of the object store repository. Attribute is optional. If not set, name is not changed.
13 14 15 |
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_repository/object_store_repository_set_attributes.rb', line 13 def name @name end |