Class: UU::UDS::Bucket::BucketAttributes

Inherits:
OS::REST::DTO show all
Defined in:
uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb

Overview

DTO representing bucket attributes.

Instance Attribute Summary (collapse)

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.

Parameters:

Returns:



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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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).

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


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).

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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).

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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).

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

Returns:



14
15
16
# File 'uu_uds-0.26.16/lib/uu/uds/bucket/bucket_attributes.rb', line 14

def uri
  @uri
end