Sha256: c0c49c3952de9b867f7509fb7b5ed460f1c95255c285398d7ad26a2e27f2504a

Contents?: true

Size: 731 Bytes

Versions: 16

Compression:

Stored size: 731 Bytes

Contents

module Yao::Resources
  class NetworkingAgents < Base

    friendly_attributes :admin_state_up, :agent_type, :alive,
                        :availability_zone, :binary, :configurations,
                        :description, :heartbeat_timestamp, :host,
                        :resources_synced, :topic

    self.service        = "network"
    self.resource_name  = "agents"
    self.resources_name = "agents"

    # @return [Date]
    def created_at
      Time.parse(self["created_at"])
    end

    # @return [Date]
    def started_at
      Time.parse(self["started_at"])
    end

    # @return [Date]
    def heartbeat_timestamp
      Time.parse(self["heartbeat_timestamp"])
    end

    alias :state :admin_state_up
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
yao-0.19.0 lib/yao/resources/networking_agents.rb
yao-0.18.0 lib/yao/resources/networking_agents.rb
yao-0.17.0 lib/yao/resources/networking_agents.rb
yao-0.16.0 lib/yao/resources/networking_agents.rb
yao-0.15.0 lib/yao/resources/networking_agents.rb
yao-0.14.0 lib/yao/resources/networking_agents.rb
yao-0.13.4 lib/yao/resources/networking_agents.rb
yao-0.13.3 lib/yao/resources/networking_agents.rb
yao-0.13.2 lib/yao/resources/networking_agents.rb
yao-0.13.1 lib/yao/resources/networking_agents.rb
yao-0.13.0 lib/yao/resources/networking_agents.rb
yao-0.12.0 lib/yao/resources/networking_agents.rb
yao-0.11.3 lib/yao/resources/networking_agents.rb
yao-0.11.2 lib/yao/resources/networking_agents.rb
yao-0.11.1 lib/yao/resources/networking_agents.rb
yao-0.11.0 lib/yao/resources/networking_agents.rb