Class: Softlayer::Virtual::Storage::Repository
- Defined in:
- lib/softlayer/virtual/storage/repository.rb,
lib/softlayer/virtual/storage/repository/type.rb
Defined Under Namespace
Classes: Representer, Type
Constant Summary collapse
- SERVICE =
'SoftLayer_Virtual_Storage_Repository'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#billing_item ⇒ Object
Returns the value of attribute billing_item.
-
#capacity ⇒ Object
Returns the value of attribute capacity.
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#description ⇒ Object
Returns the value of attribute description.
-
#disk_image_count ⇒ Object
Returns the value of attribute disk_image_count.
-
#disk_images ⇒ Object
Returns the value of attribute disk_images.
-
#guest_count ⇒ Object
Returns the value of attribute guest_count.
-
#guests ⇒ Object
Returns the value of attribute guests.
-
#id ⇒ Object
Returns the value of attribute id.
-
#metric_tracking_object ⇒ Object
Returns the value of attribute metric_tracking_object.
-
#name ⇒ Object
Returns the value of attribute name.
-
#public_flag ⇒ Object
Returns the value of attribute public_flag.
-
#public_image_billing_item ⇒ Object
Returns the value of attribute public_image_billing_item.
-
#type ⇒ Object
Returns the value of attribute type.
-
#type_id ⇒ Object
Returns the value of attribute type_id.
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_archive_disk_usage_rate_per_gb ⇒ Object
-
#get_average_usage_metric_data_by_date(message) ⇒ Object
start_date_time end_date_time.
- #get_billing_item ⇒ Object
- #get_datacenter ⇒ Object
- #get_disk_images ⇒ Object
- #get_guests ⇒ Object
- #get_metric_tracking_object ⇒ Object
- #get_object ⇒ Object
- #get_public_image_billing_item ⇒ Object
- #get_public_image_disk_usage_rate_per_gb ⇒ Object
- #get_storage_locations ⇒ Object
- #get_type ⇒ Object
-
#get_usage_metric_data_by_date(message) ⇒ Object
start_date_time end_date_time.
-
#get_usage_metric_image_by_date(message) ⇒ Object
start_date_time end_date_time.
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
15 16 17 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 15 def account @account end |
#billing_item ⇒ Object
Returns the value of attribute billing_item.
16 17 18 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 16 def billing_item @billing_item end |
#capacity ⇒ Object
Returns the value of attribute capacity.
7 8 9 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 7 def capacity @capacity end |
#datacenter ⇒ Object
Returns the value of attribute datacenter.
17 18 19 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 17 def datacenter @datacenter end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 8 def description @description end |
#disk_image_count ⇒ Object
Returns the value of attribute disk_image_count.
13 14 15 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 13 def disk_image_count @disk_image_count end |
#disk_images ⇒ Object
Returns the value of attribute disk_images.
18 19 20 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 18 def disk_images @disk_images end |
#guest_count ⇒ Object
Returns the value of attribute guest_count.
14 15 16 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 14 def guest_count @guest_count end |
#guests ⇒ Object
Returns the value of attribute guests.
19 20 21 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 19 def guests @guests end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 9 def id @id end |
#metric_tracking_object ⇒ Object
Returns the value of attribute metric_tracking_object.
20 21 22 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 20 def metric_tracking_object @metric_tracking_object end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 10 def name @name end |
#public_flag ⇒ Object
Returns the value of attribute public_flag.
11 12 13 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 11 def public_flag @public_flag end |
#public_image_billing_item ⇒ Object
Returns the value of attribute public_image_billing_item.
21 22 23 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 21 def public_image_billing_item @public_image_billing_item end |
#type ⇒ Object
Returns the value of attribute type.
22 23 24 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 22 def type @type end |
#type_id ⇒ Object
Returns the value of attribute type_id.
12 13 14 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 12 def type_id @type_id end |
Instance Method Details
#get_account ⇒ Object
24 25 26 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 24 def get_account request(:get_account, Softlayer::Account) end |
#get_archive_disk_usage_rate_per_gb ⇒ Object
28 29 30 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 28 def get_archive_disk_usage_rate_per_gb request(:get_archive_disk_usage_rate_per_gb, Float) end |
#get_average_usage_metric_data_by_date(message) ⇒ Object
start_date_time end_date_time
34 35 36 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 34 def get_average_usage_metric_data_by_date() request(:get_average_usage_metric_data_by_date, Float, ) end |
#get_billing_item ⇒ Object
38 39 40 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 38 def get_billing_item request(:get_billing_item, Softlayer::Billing::Item) end |
#get_datacenter ⇒ Object
42 43 44 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 42 def get_datacenter request(:get_datacenter, Softlayer::Location) end |
#get_disk_images ⇒ Object
46 47 48 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 46 def get_disk_images request(:get_disk_images, Array[Softlayer::Virtual::Disk::Image]) end |
#get_guests ⇒ Object
50 51 52 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 50 def get_guests request(:get_guests, Array[Softlayer::Virtual::Guest]) end |
#get_metric_tracking_object ⇒ Object
54 55 56 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 54 def get_metric_tracking_object request(:get_metric_tracking_object, Softlayer::Metric::Tracking::Object::Virtual::Storage::Repository) end |
#get_object ⇒ Object
58 59 60 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 58 def get_object request(:get_object, Softlayer::Virtual::Storage::Repository) end |
#get_public_image_billing_item ⇒ Object
62 63 64 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 62 def get_public_image_billing_item request(:get_public_image_billing_item, Softlayer::Billing::Item) end |
#get_public_image_disk_usage_rate_per_gb ⇒ Object
66 67 68 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 66 def get_public_image_disk_usage_rate_per_gb request(:get_public_image_disk_usage_rate_per_gb, Float) end |
#get_storage_locations ⇒ Object
70 71 72 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 70 def get_storage_locations request(:get_storage_locations, Array[Softlayer::Location]) end |
#get_type ⇒ Object
74 75 76 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 74 def get_type request(:get_type, Softlayer::Virtual::Storage::Repository::Type) end |
#get_usage_metric_data_by_date(message) ⇒ Object
start_date_time end_date_time
80 81 82 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 80 def get_usage_metric_data_by_date() request(:get_usage_metric_data_by_date, Array[Softlayer::Metric::Tracking::Object::Data], ) end |
#get_usage_metric_image_by_date(message) ⇒ Object
start_date_time end_date_time
86 87 88 |
# File 'lib/softlayer/virtual/storage/repository.rb', line 86 def get_usage_metric_image_by_date() request(:get_usage_metric_image_by_date, Softlayer::Container::Bandwidth::GraphOutputs, ) end |