Class: UU::ObjectStore::ObjectStoreControl::ObjectStoreSetAttributes

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

Overview

DTO for updating of the existing object store.

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

New code of the object store. Code must be unique in scope of territory. Attribute is optional. If not set, code is not changed.

Returns:

  • (String)


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

def code
  @code
end

- (String) description

New description of the object store. Attribute is optional. If not set, description is not changed.

Returns:

  • (String)


23
24
25
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_set_attributes.rb', line 23

def description
  @description
end

- (Fixnum) max_size

Maximum size of the object store (in megabytes). If requested maximum size is smaller than total size of already stored uuObjects or smaller than minimal size, update of object store fails. Attribute is optional. If not set, maximum size is not changed.

Returns:

  • (Fixnum)


36
37
38
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_set_attributes.rb', line 36

def max_size
  @max_size
end

- (Fixnum) min_size

Minimal size of the object store (in megabytes). This size will be preallocated in object store repository. Exception is thrown in case object store repository does not have required capacity. Attribute is optional. If not set, minimal size is not changed.

Returns:

  • (Fixnum)


30
31
32
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_set_attributes.rb', line 30

def min_size
  @min_size
end

- (String) name

New name of the object store. Attribute is optional. If not set, name is not changed.

Returns:

  • (String)


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

def name
  @name
end