Class: UU::UDS::Bucket::BucketAttributes
- Inherits:
-
OS::REST::DTO
- Object
- OS::REST::DTO
- UU::UDS::Bucket::BucketAttributes
- Defined in:
- uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb
Overview
DTO representing bucket attributes.
Instance Attribute Summary (collapse)
-
- (UU::OS::UESURI) application_uri
URI of application which is owner of this bucket.
-
- (Fixnum) blob_timeout
Time (in minutes) after which blobs in this bucket will be automatically deleted.
-
- (Fixnum) capacity
Bucket capacity (in megabytes).
-
- (String) code
Code of the bucket.
-
- (String) description
Description of the bucket.
-
- (Fixnum) max_blob_size
Maximum allowed size of single blob (in megabytes).
-
- (Fixnum) max_total_size_per_app
Maximum total size allowed to be stored by single application (in megabytes).
-
- (Fixnum) max_total_size_per_user
Maximum total size allowed to be stored by single user (in megabytes).
-
- (String) name
Name of the bucket.
-
- (Object) restricted
If true, bucket is created only for specified AppBox (or App instance).
-
- (Fixnum) total_blob_count
Total count of blobs in this bucket.
-
- (Fixnum) total_blob_size
Total size (in bytes) of blobs in this bucket.
-
- (UU::OS::UESURI) uri
URI of the bucket.
Method Summary
Methods inherited from 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) application_uri
URI of application which is owner of this bucket.
34 35 36 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 34 def application_uri @application_uri end |
- (Fixnum) blob_timeout
Time (in minutes) after which blobs in this bucket will be automatically deleted.
44 45 46 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 44 def blob_timeout @blob_timeout end |
- (Fixnum) capacity
Bucket capacity (in megabytes).
39 40 41 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 39 def capacity @capacity end |
- (String) code
Code of the bucket.
19 20 21 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 19 def code @code end |
- (String) description
Description of the bucket.
29 30 31 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 29 def description @description end |
- (Fixnum) max_blob_size
Maximum allowed size of single blob (in megabytes).
49 50 51 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 49 def max_blob_size @max_blob_size end |
- (Fixnum) max_total_size_per_app
Maximum total size allowed to be stored by single application (in megabytes).
59 60 61 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 59 def max_total_size_per_app @max_total_size_per_app end |
- (Fixnum) max_total_size_per_user
Maximum total size allowed to be stored by single user (in megabytes).
54 55 56 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 54 def max_total_size_per_user @max_total_size_per_user end |
- (String) name
Name of the bucket.
24 25 26 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 24 def name @name end |
- (Object) restricted
If true, bucket is created only for specified AppBox (or App instance). In this case only this particular application can manipulate with blobs. If false, bucket is public for any application, but blob manipulation is restricted to user which created particular blob.
75 76 77 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 75 def restricted @restricted end |
- (Fixnum) total_blob_count
Total count of blobs in this bucket.
69 70 71 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 69 def total_blob_count @total_blob_count end |
- (Fixnum) total_blob_size
Total size (in bytes) of blobs in this bucket.
64 65 66 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 64 def total_blob_size @total_blob_size end |
- (UU::OS::UESURI) uri
URI of the bucket.
14 15 16 |
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 14 def uri @uri end |