Class: UU::BinaryStore::BinaryStoreRepository
- Inherits:
-
Object
- Object
- UU::BinaryStore::BinaryStoreRepository
- Defined in:
- lib/uu_binarystore/binary_store_repository.rb,
lib/uu_binarystore/binary_store_repository/binary_store_repository_create.rb,
lib/uu_binarystore/binary_store_repository/binary_store_repository_attributes.rb,
lib/uu_binarystore/binary_store_repository/binary_store_repository_set_attributes.rb,
lib/uu_binarystore/binary_store_repository/binary_store_repository_get_repository_list.rb
Overview
Binary store repository service
Defined Under Namespace
Classes: BinaryStoreGetRepositoryList, BinaryStoreRepositoryAttributes, BinaryStoreRepositoryCreate, BinaryStoreRepositorySetAttributes
Class Method Summary collapse
-
.create(location_uri, binary_store_repository) ⇒ UU::OS::UESURI
Creates new binary store repository.
-
.delete(binary_store_repository_uri) ⇒ Object
Deletes the binary store repository.
-
.get_attributes(binary_store_repository_uri) ⇒ BinaryStoreRepositoryAttributes
Returns attributes of the binary store repository.
-
.get_repository_list(location_uri, criteria = nil) ⇒ UU::OS::REST::ResultList<BinaryStoreRepositoryGetRepositoryList, BinaryStoreRepositoryAttributes>
Returns a list of binary store repositories within a given location (territory).
-
.set_attributes(binary_store_repository_uri, binary_store_repository) ⇒ UU::OS::UESURI
Updates attributes of the binary store repository.
Class Method Details
.create(location_uri, binary_store_repository) ⇒ UU::OS::UESURI
Creates new binary store repository.
42 43 44 45 |
# File 'lib/uu_binarystore/binary_store_repository.rb', line 42 def self.create(location_uri, binary_store_repository) session = UU::OS::Security::Session.current_session self.new(session).create(UU::OS::UESURI.new(location_uri), binary_store_repository) end |
.delete(binary_store_repository_uri) ⇒ Object
Deletes the binary store repository. The repository cannot be deleted if it contains any binary stores.
58 59 60 61 |
# File 'lib/uu_binarystore/binary_store_repository.rb', line 58 def self.delete(binary_store_repository_uri) session = UU::OS::Security::Session.current_session self.new(session).delete(UU::OS::UESURI.new(binary_store_repository_uri)) end |
.get_attributes(binary_store_repository_uri) ⇒ BinaryStoreRepositoryAttributes
Returns attributes of the binary store repository.
73 74 75 76 |
# File 'lib/uu_binarystore/binary_store_repository.rb', line 73 def self.get_attributes(binary_store_repository_uri) session = UU::OS::Security::Session.current_session self.new(session).get_attributes(UU::OS::UESURI.new(binary_store_repository_uri)) end |
.get_repository_list(location_uri, criteria = nil) ⇒ UU::OS::REST::ResultList<BinaryStoreRepositoryGetRepositoryList, BinaryStoreRepositoryAttributes>
Returns a list of binary store repositories within a given location (territory).
130 131 132 133 |
# File 'lib/uu_binarystore/binary_store_repository.rb', line 130 def self.get_repository_list(location_uri, criteria = nil) session = UU::OS::Security::Session.current_session self.new(session).get_repository_list(UU::OS::UESURI.new(location_uri), criteria) end |
.set_attributes(binary_store_repository_uri, binary_store_repository) ⇒ UU::OS::UESURI
Updates attributes of the binary store repository.
106 107 108 109 |
# File 'lib/uu_binarystore/binary_store_repository.rb', line 106 def self.set_attributes(binary_store_repository_uri, binary_store_repository) session = UU::OS::Security::Session.current_session self.new(session).set_attributes(UU::OS::UESURI.new(binary_store_repository_uri), binary_store_repository) end |