Class: Tiktalik::Computing::VPSImage
- Defined in:
- lib/tiktalik/computing/vpsimage.rb
Instance Attribute Summary collapse
-
#create_time ⇒ Object
readonly
String.
-
#description ⇒ Object
readonly
String.
-
#is_public ⇒ Object
readonly
String.
-
#name ⇒ Object
readonly
String.
-
#owner ⇒ Object
readonly
String.
-
#type ⇒ Object
readonly
String.
-
#uuid ⇒ Object
readonly
String.
Class Method Summary collapse
-
.all ⇒ Object
List of VPS images.
-
.find(uuid) ⇒ Object
Get image or backup.
Instance Method Summary collapse
-
#destroy ⇒ Object
Delete users backup image.
Methods inherited from Object
Constructor Details
This class inherits a constructor from Tiktalik::Object
Instance Attribute Details
#create_time ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def create_time @create_time end |
#description ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def description @description end |
#is_public ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def is_public @is_public end |
#name ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def name @name end |
#owner ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def owner @owner end |
#type ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def type @type end |
#uuid ⇒ Object (readonly)
String
6 7 8 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 6 def uuid @uuid end |
Class Method Details
.all ⇒ Object
List of VPS images.
15 16 17 18 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 15 def self.all results = request(:get, '/computing/image') results.collect { |result| new(result) } end |
.find(uuid) ⇒ Object
Get image or backup.
23 24 25 26 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 23 def self.find(uuid) result = request(:get, "/computing/image/#{uuid}") new(result) end |
Instance Method Details
#destroy ⇒ Object
Delete users backup image.
29 30 31 32 |
# File 'lib/tiktalik/computing/vpsimage.rb', line 29 def destroy request(:delete, "/computing/image/#{uuid}") true end |