Sha256: 423ad6de6f0d91f355b55b4eca2671cf3f06ae0dbbabb6a88ec450bcd2e61700

Contents?: true

Size: 740 Bytes

Versions: 8

Compression:

Stored size: 740 Bytes

Contents

require 'fog/compute/models/server'

module Fog
  module OracleCloud
    class Java
      class Server < Fog::Model
      	identity :name

      	attribute :cluster_name,     :aliases=>'clusterName'
      	attribute :name
      	attribute :shape
      	attribute :node_type,        :aliases=>'nodeType'
      	attribute :is_admin,         :aliases=>'is_admin'
      	attribute :hostname
      	attribute :status
      	attribute :reserved_ip,      :aliases=>'reserved_ip'
      	attribute :storage_allocated, :aliases=>'storageAllocated'
      	attribute :creation_date,     :aliases=>'creationDate'

      	def ip_addr
          reserved_ip.blank? ? hostname : reserved_ip
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/java/server.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/java/server.rb