Sha256: 434573eb707aeb8d8b09f0ca002bb4c4ae714eeaa1b315e6ffebac3b98ef5a4c
Contents?: true
Size: 959 Bytes
Versions: 13
Compression:
Stored size: 959 Bytes
Contents
require 'fog/ecloud/models/compute/backup_internet_service' module Fog module Compute class Ecloud class BackupInternetServices < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::BackupInternetService def all data = connection.get_backup_internet_services(href).body load(data) end def get(uri) if data = connection.get_backup_internet_service(uri) new(data.body) end rescue Fog::Errors::NotFound nil end def from_data(data) new(data) end def create(options) options[:uri] = href + "/action/createBackupInternetService" options[:enabled] ||= true data = connection.backup_internet_service_create(options) new(data) end def internet_service_id href.scan(/\d+/)[0] end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems