Sha256: a4a71243ce36f1cfd7e42eb03bb4b4ad4f45e4e8adde55a9250bfa99db8bcf04

Contents?: true

Size: 859 Bytes

Versions: 4

Compression:

Stored size: 859 Bytes

Contents

#
# Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>)
# © Copyright IBM Corporation 2014.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

module Fog
  module Compute
    class Softlayer

      class Image < Fog::Model

        identity :id,               :aliases => 'globalIdentifier'
        attribute :name
        attribute :note
        attribute :parent_id,       :aliases => 'parentId'
        attribute :public_flag,      :aliases => 'publicFlag'
        attribute :status_id,       :aliases => 'statusId'
        attribute :summary
        attribute :transaction_id,  :aliases => 'transactionId'
        attribute :user_record_id,  :aliases => 'userRecordId'
        attribute :account_id,  :aliases => 'accountId'

        def public?
          public_flag == 1
        end

      end

    end
  end
end

Version data entries

4 entries across 2 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/compute/image.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/compute/image.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/compute/image.rb
fog-softlayer-1.1.4 lib/fog/softlayer/models/compute/image.rb