Sha256: df50a0a85ba82df1239b294c48882386102c55b78d9b970fbcbc3cbdd55fc174

Contents?: true

Size: 1.57 KB

Versions: 30

Compression:

Stored size: 1.57 KB

Contents

require 'fog/core/model'

module Fog
  module Compute
    class Brightbox

      class Account < Fog::Model

        identity :id
        attribute :url
        attribute :resource_type

        attribute :name
        attribute :status

        attribute :address_1
        attribute :address_2
        attribute :city
        attribute :county
        attribute :postcode
        attribute :country_code
        attribute :country_name
        attribute :vat_registration_number
        attribute :telephone_number
        attribute :verified_telephone
        attribute :verified_ip
        attribute :ram_limit
        attribute :ram_used
        attribute :cloud_ips_limit
        attribute :cloud_ips_used
        attribute :load_balancers_limit
        attribute :load_balancers_used
        attribute :library_ftp_host
        attribute :library_ftp_user
        # This is always returned as null/nil unless performing a reset_ftp_password request
        attribute :library_ftp_password

        # Boolean flags
        attribute :valid_credit_card
        attribute :telephone_verified

        # Times
        attribute :created_at, :type => :time
        attribute :verified_at, :type => :time

        # Links - to be replaced
        attribute :owner_id, :aliases => "owner", :squash => "id"
        attribute :clients
        attribute :images
        attribute :servers
        attribute :users
        attribute :zones

        def reset_ftp_password
          requires :identity
          connection.reset_ftp_password_account["library_ftp_password"]
        end

      end

    end
  end
end

Version data entries

30 entries across 30 versions & 10 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/brightbox/models/compute/account.rb
fog-test-again-1.6.0 lib/fog/brightbox/models/compute/account.rb
fog-parser-fix-1.6.0 lib/fog/brightbox/models/compute/account.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/brightbox/models/compute/account.rb
fog-1.7.0 lib/fog/brightbox/models/compute/account.rb
fog-1.6.0 lib/fog/brightbox/models/compute/account.rb
fog-1.5.0 lib/fog/brightbox/models/compute/account.rb
fog-1.4.0 lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb
michiels-fog-1.3.1 lib/fog/brightbox/models/compute/account.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb
fog-1.3.1 lib/fog/brightbox/models/compute/account.rb
fog-1.3.0 lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb
fog-1.2.0 lib/fog/brightbox/models/compute/account.rb
ktheory-fog-1.1.2 lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/account.rb