Class: UU::ObjectStore::ObjectStoreControl::ObjectStoreCreate

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

Overview

DTO for creation of the new 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

- (UU::OS::UESURI) access_group_location_uri

URI of location where should should be created object store access group. Attribute is optional, if not set group is created in same location as object store artifact.

Returns:



45
46
47
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_create.rb', line 45

def access_group_location_uri
  @access_group_location_uri
end

- (String) code

Code of the new object store. 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_control/object_store_create.rb', line 18

def code
  @code
end

- (String) description

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

Returns:

  • (String)


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

def description
  @description
end

- (UU::OS::UESURI) location_uri

URI of location where should should be created object store artifact. Attribute is optional, defaults to location of object store repository.

Returns:



39
40
41
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_create.rb', line 39

def location_uri
  @location_uri
end

- (Fixnum) max_size

Maximum size of the object store (in megabytes). Attribute is optional, defaults to value defined by server.

Returns:

  • (Fixnum)


34
35
36
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_store_control/object_store_create.rb', line 34

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, defaults to value defined by server.

Returns:

  • (Fixnum)


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

def min_size
  @min_size
end

- (String) name

Name of the new object store. Attribute is mandatory.

Returns:

  • (String)


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

def name
  @name
end