Sha256: 288de1671ced91b738e5bd388c40729d4efc2d04b29ae57567a101bd0545d85c

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

module Yao::Resources
  class ServerMigrate < Base
    friendly_attributes :dest_compute, :dest_host, :dest_node, :instance_uuid, :new_instance_type_id, :old_instance_type_id,
                        :source_compute, :source_node, :status, :migration_type, :uuid, :user_id, :project_id
    map_attributes_to_time :created_at, :updated_at

    self.service        = "compute"
    self.resource_name  = "migrations"
    self.resources_name = "os-migrations"

    def server
      @server ||= Yao::Server.get(self["instance_uuid"])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yao-0.21.0 lib/yao/resources/server_migrate.rb
yao-0.20.0 lib/yao/resources/server_migrate.rb